To create a variable 'x' with a value of 10 in R, the syntax would be ________.

  • 10 -> x
  • All of the above
  • x <- 10
  • x = 10
The syntax 'x <- 10' assigns the value 10 to the variable x in R. This is the most common way to assign a value to a variable in R, although 'x = 10' and '10 -> x' would also work.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *