R (like all programming languages) is basically a fancy calculator:
1 + 2 # addition [1] 3 3 - 2 # subtraction [1] 1 4 * 2 # multiplication [1] 8 4 / 2 # division [1] 2
The
[1]
lines above are the output given by R when the preceding expression is runAny portion of a line starting with a
#
is a comment and ignored by R