What an R tutor can help you learn
R is a free language and environment for statistical computing and graphics. RStudio is a free program you write and run R code in, but it does not include R, so you install both. An R tutor helps you understand and repeat your own analysis, so you can explain each step in your module or project. Lessons do not produce analysis for you to submit. These are the areas most R learners bring to lessons.
- A reproducible workflow
- Write code in scripts rather than typing into the console, keep each analysis in its own RStudio project, use relative file paths instead of setwd(), and restart R often so the script, not a saved workspace, is the record of what you did.
- Data wrangling
- Tidy and transform data with the dplyr verbs filter(), arrange(), select(), mutate(), group_by() and summarize(), chained with the pipe |>. These come from the tidyverse, a collection of packages that also includes ggplot2, tidyr and readr.
- Plotting with ggplot2
- Build a chart by choosing the data, mapping variables to aesthetics such as x, y and colour, and adding geoms such as points or bars, rather than copying chart code you cannot change.
- Statistical models
- Fit linear models, ANOVA and ANCOVA with lm(), and generalised linear models with glm(), where the family argument sets the distribution and link, such as binomial for a yes/no outcome. A tutor helps you connect the output to the method your module asks for.
- Reports and package versions
- Combine code, output and writing in a Quarto or R Markdown document, and record package versions with renv so the same project runs again later. renv does not fix the R version itself.
- Reading and fixing errors
- Read what an error message is telling you, find which line causes it, and build a minimal reproducible example (a reprex) when you need to ask for help.