Which operator is used to assign a value to a variable in R?
a) ==
b) =
c) ->
d) <-
Answer:
d) <-
Explanation:
The <- operator is commonly used in R to assign a value to a variable. While = can also be used, <- is preferred.
The <- operator is commonly used in R to assign a value to a variable. While = can also be used, <- is preferred.