Step-by-step lesson · RStudio
How to filter and select data with dplyr in RStudio
- Type library(dplyr)
- Type young <- filter(data, age < 30)
- Type small <- select(young, id, score)
- Type head(small) to check
More in RStudio
- How to run code in the console and in a script in RStudio
- How to install and load a package in RStudio
- How to make a plot with ggplot2 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