Comment/Statements
The comment symbol for R is the pound sign #
Line continuation in the command window is automatic; if a carriage return is hit before a statement is closed,
then the R environment assumes that the statement is being continued on the next line.
Samples
# This is a comment
# The following two lines are acceptable to R
sin(pi + # an 'open' expression is assumed 0.5*pi) # to be continued on the next line
UCLA Mathematics Department | ©2000 |