R TutorialLesson 4Free preview
R Syntax
This lesson is part of R · All levels
Summary
This lesson reviews the rules of code syntax in R. In R, the statement is executed line by line and does not require a semicolon at the end of the line, although semicolon can be used to separate several commands in a single line. R is case-sensitive in distinguishing between variable names and functions.
Key points
- Statements are usually written one line per line without the need for a semicolon
- R is case-sensitive ('Data' is different from 'data')
- Writing the name of the variable directly on the console will automatically print the contents.
- The print() function is used to print outputs formally
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.