R is many things…
It’s been very popular in academia for more than a decade
A statisitcal software that can do simple or complex analyses, similar to SAS or S plus, and which makes really great looking graphs
When you first open RStudio, this is what you see
Type 1 + 1 then hit “Enter” and R will return the answer
Open a new script by selecting “File” -> “New File” -> “R Script” and it will appear in the top left panel of RStudio
You can type and run more than one line at a time by highlighting and clicking the “Run” button on the script tool bar
We’ll explain more about what to look for in those panels later ***
10 + 5
10 - 5
10 * 5
10 / 5
10 ^ 5
<-x and y by assigning some numbers to themx <- 10
y <- 5
x + y
## [1] 15
In RStudio, you will see the variables we created in the top right panel
x
## [1] 10
x <- 20
x
## [1] 20
In the top right panel you can see that the number stored in the variable x has changed