Module 04 of 10

Importing & Cleaning Data

Lessons

About This Module

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.

Lessons

4 videos
01

Import CSV File in R using read.csv and read_csv (readr tidyverse)

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.

02

Reading Data with the Tidyverse

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.

03

R Simplified - Import & Clean Data

A beginner-friendly walkthrough in RStudio that takes a dataset from import through cleaning, ending with a tidy dataset ready for analysis.

04

Clean Your Data with R | R Programming for Beginners

Practical tidyverse techniques for cleaning data: handling missing values, removing duplicate rows, and recoding variables.