From the course: Complete Guide to R: Wrangling, Visualizing, and Modeling Data
Unlock the full course today
Join today to access over 24,300 courses taught by industry experts.
Creating tidy data
From the course: Complete Guide to R: Wrangling, Visualizing, and Modeling Data
Creating tidy data
- [Instructor] There's a general rule of thumb in the data world that 80% of the time on any data project is spent getting ready for things. And wrangling data, getting the data ready is a very big part of that. But getting your data into what's called a tidy format, having tidy data, is one way of organizing things that makes your life much, much easier. And so I want to give you a quick example of how that can work with several different kinds of untidy data. We'll start by loading a few packages with pacman first. And then we're going to load a few extra packages, including one called tsibble, T-S-I-B-B-L-E, and that is a tibble from the Tidyverse for time series data, as well as lubridate for working with dates and XML for working one kind of structured data, so let's load those. If you don't have those installed already, it might take just a moment. And then we're going to come down here, and let me give you the very short version of what tidy data means. Now this comes from a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Creating tidy data10m 12s
-
(Locked)
Using tibbles4m 51s
-
(Locked)
Using data.table4m 57s
-
(Locked)
Converting data from wide to tall and from tall to wide4m 13s
-
(Locked)
Converting data from tables to rows5m 2s
-
(Locked)
Working with dates and times6m 21s
-
Working with list data5m 14s
-
(Locked)
Working with XML data5m 22s
-
(Locked)
Working with categorical variables6m 29s
-
(Locked)
Filtering cases and subgroups7m 32s
-
(Locked)
-
-
-
-
-
-
-