From the course: R Essential Training: Wrangling and Visualizing Data
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Using tibbles
From the course: R Essential Training: Wrangling and Visualizing Data
Using tibbles
- [Instructor] A central element of the tidyverse approach to R is the tibble. It's a way of storing data, think of it as a variation on table. And in fact, the tibble is an enhanced version of the data frame, the most common way of storing data. What's funny about it though, is actually is restrictive, there are certain things it doesn't allow you to do. But usually those are things you shouldn't be doing anyhow. I like to use tibbles as often as possible because of the way they facilitate certain commands, they work better with the tidyverse. The way they print is better. I like 'em, I use 'em unless I have some compelling reason not to. But I want to show you a few tibble basics, even though I've been using them throughout the course so far. Number one, I'm going to load a few packages including the tidyverse which is going to make it possible to do tibbles. So the data set that I'm going to use is about orange…
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
-
-
-
-
-
-
-
Creating tidy data9m 46s
-
Using tibbles4m 51s
-
Using data.table4m 57s
-
Converting data from wide to tall and from tall to wide4m 13s
-
Converting data from tables to rows5m 2s
-
Working with dates and times6m 20s
-
Working with list data5m 13s
-
Working with XML data5m 22s
-
Working with categorical variables6m 29s
-
Filtering cases and subgroups7m 32s
-
-
-