# in R

In R, the # symbol is used to add notes to your code. When you run the code, R ignores what is writing behind the # symbol. The following is an example. In the first line of the code, “This is an example of computing 2+3” is treated as a note. In the second line, R computes 2+3 and treats “Addition” as a note.

 

# This is an example of computing 2+3
2+3 #Addition 

Hence the output of R is just 5.

[1] 5