Перейти к содержимому

Cleaning Data in R

Emmanuel Teitelbaum

0:00 / 0:00

Cleaning Data in R

1 372 просмотра · 2 года назад
Emmanuel Teitelbaum
603 подписчика
1 372 просмотра · 2 года назад
In this video, I show students how to clean data with functions from the dplyr and janitor packages. We take some messy variable names, truncate them and put them into snake case. And we take some variables that are in character format and change them to numeric. This video is part of a series of videos on wrangling data in R:    • Wrangling Data in R   Code and data are here: https://github.com/eteitelbaum/youtub... Table of Contents: 01:03 - mutate() and mutate_at() 01:38 - Prep the Quarto document 03:28 - Call mutate() with substring() 05:20 - Call mutate_at() with as.numeric 06:25 - Run code, view data 07:51 - Clean variable names 10:29 - Write to CSV 13:40 - Render the document