Introduction to R and R Studio
This is a second edition of the Introduction to R and R Studio material which is extended for data manipulation and broken into smaller chapters to offer greater flexibility for trainers.
The link to the published materials is in a suggested order.
Part 1
Introduction
Course agenda and aims
Introducing and getting started with RStudio
Introducing what packages are in R
Break
Part 2
Importing data
Import a csv
Import a messy csv
Import a csv from the web
Important features of coding
{dplyr} data wrangling with a selection of main functions
{dplyr} showcase more functions
Break
Creating new objects
Introducing vectors
Joining data together
How to style your R code
Finding Help
Finding help on functions using RStudio and the internet
Ongoing learning resources
Part 3
Introducing chart visualisations using {ggplot2}
Break
Using {datapasta}
Using {janitor} to remove blank rows/columns and tidy column names
Using {stringr} for cleaning with strings (for example % wildcard searches)
Spotted a mistake?
Please let us know if there are mistakes or improvements by creating an issue.