Which of the following is a valid variable name in R?
a) 1var
b) _variable
c) variable_1
d) var-iable
Answer:
c) variable_1
Explanation:
Variable names in R must begin with a letter or a period, followed by letters, digits, or underscores. variable_1
is the only valid option.