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).
If you have suggestions for adding more resources, please email us at datacenter@ucr.nl.
The basics of R
- A (very) short introduction to 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
- 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)
- How to make any plot in ggplot2?
- 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
- Conversions between long and wide format
- 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
- Visualization of joining datasets
- More on join functions (video)
Geospatial data
-
Cornell University Computing for Information Science materials:
Text analysis
Other
- The Big Book of R: huge list of R resources
- adventr: R tutorial from the author of Discovering Statistics Using IBM SPSS Statistics (ACCRMET101 level)
- discovr: R tutorial from the author of Discovering Statistics Using IBM SPSS Statistics (SSCRMET201 level)