R TutorialLesson 6Free preview
R Variables
This lesson is part of R · All levels
Summary
This lesson reviews the creation of variables and rules for identifier naming in R. Variables are used to store data in memory for statistical manipulation. Developers will study assignment operators '<-' and '=', naming conventions with a dot or bottom line, as well as workspace manager functions such as ls() and rm().
Key points
- The value assignment can use the operators '<-' (recommended) or '='
- The name of the variable can contain letters, numbers, dots (.), and the bottom line (_)
- The name of the variable must not be preceded by a number or a lower-order sign
- The 'ls()' function displays a list of active variables in memory, and 'rm()' deletes the variable
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.