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

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…

Contents