You’ll work on different assignments in different courses, but some general resources for working with R can be helpful in a wide range of assignments. Below are some helpful links in case you would like to complement the Data Center workshops and tutorials (which you can find on the Tutorials page and the individual course pages).
The basics of R
- Cheat sheet for importing data
- Cheat sheet for data
manipulation
(including
filter()
,select()
and the pipe operator(%>%
)) - Cheat sheet for data tidying (including reshaping and pivoting)
- Getting started with Data in R (covers: using R and RStudio, basic terminology, introduction to packages)
- R objects
- Advice on using projects
- Full tutorial on R language basics (slides)
- Full tutorial on data cleaning and wrangling (slides)
- More explanation on the pipe operator
- Selecting and filtering data
- Conversions between long and wide format
- Creating a project in RStudio (video)
- Packages in R (video)
- Loading a data file (video)
- Data manipulation (video)
Help with ggplot
- Cheat sheet for
ggplot
- The R Graph Gallery (example plots, including full R scripts)
- More details on data visualization
- Saving plots with
ggsave()
- Basic
ggplot
tutorial (video) - Customizing plots (video)
Importing data
- Cheat sheet for data import
- More on
read_csv()
- Import with
haven
- Import with
readr
andreadxl
(video) - Import using
haven
(video)
Data cleaning
- Filter, select, mutate and summarize data
- More on
mutate()
- Summarizing data by groups
- List of common useful functions within
summarize()
- More on
rename()
- How to handle missing data
- Select, filter, mutate and summarize data (video)
- Summarizing by groups (video)
- How to handle missing values (video)
Merging data
bind_rows()
and join functions visualized- More on join functions
- Examples of using joins
- More on join functions (video)
Geospatial data
-
Cornell University Computing for Information Science materials: