[1] 2
You can start learning R by using it as a simple calculator. Let’s enter some basic formulae
The symbols used for simple arithmetic are the same in R as they are in Excel:
+
-
*
/
^
Base R includes all the standard mathematical functions:
If you want to add notes to your script, to help you remember what the code does, type a #
symbol before your note. R ignores anything written on a line after the #