Comments - R (#) Flashcards

1
Q

7) Comments can be used to explain R code, and to make it more readable.

A

Comments #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

8) It can also be used to prevent execution when testing alternative code.

A

Comments #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

9) Comments starts with a #. When executing code, R will ignore anything that starts with #.

A

Comments #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

10) This example uses a comment at the end of a line of code:

A

Comments #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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 #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly