Step-by-step lesson · RStudio
How to run code in the console and in a script in RStudio
- Type 2 + 2 in the Console and press Return
- Choose File > New File > R Script
- Type your code in the script
- Put the cursor on a line and press Command-Return to run it
More in RStudio
- How to install and load a package in RStudio
- How to make a plot with ggplot2 in RStudio
- How to filter and select data with dplyr in RStudio
- How to run a t-test in RStudio
- How to reshape data with tidyr in RStudio
- How to set the working directory in RStudio