First Class Flashcards
What is the first thing you should do every time you use R studio?
Set the working directory
How do you set the working directory?
Session -> Set working directory -> choose file
What is the function you use to install a package?
install.packages
What is the function you use to load and attach a package?
library
When are data considered to be “tidy”?
when every row in the data frame corresponds to a single observation and every variable is only found in one collumn
How to access a built in help file?
use the question mark
How do you get a collumn?
use the select function - select(name of date, name of collumn)
How do you get a row?
use the slice function
What must you first do when using all dplyr and ggplot functions?
provide the name of the dataframe