Chapter 4 The Basics
4.1 R can be our calculator
Addition (use +
).
[1] 4
Multiplication (use *
).
[1] 12
Division (use /
).
[1] 50
…anything is possible
[1] 0.3252033
💡 Type in your numbers either within the workshop.R file (TOP-RIGHT) or within the console (BOTTOM-RIGHT). Then to run - click Run at the top of the .R script or type ctrl/cmd
+ enter
. The answer prints in the console.