In R, you can assign a value to a variable using the <-
or =
operators. Here is an example:
main.r7 chars2 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