R TutorialLesson 5Free preview
R Comments
This lesson is part of R · All levels
Summary
This lesson explains how to write comments on R program using the tag character (#). The commentary serves to provide documentation of the record and will not be processed by the R execution engine. R has no built-in syntax for multi-line comments, so each line of comments is initiated with a tag.
Key points
- Comments begin with the character '#' at the beginning of the line or after the code (inline)
- Compiler and interpreter R ignore the entire text after the '#' mark to the end of the line
- R does not have an opening/closing symbol specific to multi-line comments
- Multi-line comments are made by placing a '#' on each row in a row
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.