Real data rarely arrives ready to analyze. This module covers the first steps of any analysis: importing data from files such as CSV and Excel into R, then cleaning it so you can trust the results. You'll work with the readr package from the tidyverse as well as base R functions like read.csv(), and see how to control column names and data types as you read a file in.
Once the data is loaded, you'll learn to spot and handle missing values, tidy up inconsistent column names, remove duplicates, and recode variables. The lessons combine focused videos on single tasks with a longer walkthrough that takes a dataset from raw import to a cleaned result ready for analysis.
Watch the lessons in order, then continue on to Data Manipulation with dplyr.
Shows how to bring a CSV file into R with both base R's read.csv() and the tidyverse read_csv(), and how the two differ.
Covers importing data with readr, including how to clean up column names and specify the data type of each column as you read the file.
A beginner-friendly walkthrough in RStudio that takes a dataset from import through cleaning, ending with a tidy dataset ready for analysis.
Practical tidyverse techniques for cleaning data: handling missing values, removing duplicate rows, and recoding variables.