Comments - R (#) Flashcards
1
Q
7) Comments can be used to explain R code, and to make it more readable.
A
Comments #
2
Q
8) It can also be used to prevent execution when testing alternative code.
A
Comments #
3
Q
9) Comments starts with a #. When executing code, R will ignore anything that starts with #.
A
Comments #
4
Q
10) This example uses a comment at the end of a line of code:
A
Comments #
5
Q
11) Comments does not have to be text to explain the code, it can also be used to prevent R from executing the code:
A
Comments #