how to assign a value in r in r

In R, you can assign a value to a variable using the <- or = operators. Here is an example:

main.r
x <- 5
7 chars
2 lines

This creates a variable called x and assigns it the value of 5. You can then use this variable in other expressions and manipulate it as needed.

gistlibby LogSnag