In R programming #
is used to comment a code. If a particular line is commented in a script, when the script is executed, anything after a #
will be ignored. There is no separate multi-line (a block comment) comments unlike other languages like HTML, SQL, JavaScript, Java etc.
#Calculate 5 + 7
R can be used as a simple calculator. Consider the following arithmetic operators.