Aryan PrajapatKnowledge Contributor
What are the requirements for naming variables in R?
What are the requirements for naming variables in R?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
1.A variable name can be a combination of letters, digits, dots, and underscores. It can’t contain any other symbols, including white spaces.
2.A variable name must start with a letter or a dot.
3.If a variable name starts with a dot, this dot can’t be followed by a digit.
4.Reserved words in R (TRUE, for, NULL, etc.) can’t be used as variable names.
5.Variable names are case-sensitive.