2024-10-07
Modern Dive
Emma Rand
Artwork by @allison_horst
When you first open R, the console should be empty.
Typing and executing code in the console
.R
R script
10^2
[1] 100
3 ^ 7
[1] 2187
6/9
[1] 0.6666667
9-43
[1] -34
4^3-2* 7+9 /2
[1] 54.5
The equation above is computed as \[4^3 − (2 \cdot 7) + \frac{9}{2}\]