From the course: Learning the R Tidyverse
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Is it a data frame or a tibble? - R Tutorial
From the course: Learning the R Tidyverse
Is it a data frame or a tibble?
- [Instructor] What are data.frames and Tibbles and how do they differ? Well, data.frames can be considered base R's "standard rectangular data store." They've been in R since the days of old, and most R users have heard of them. They're really useful because you can subset them and you can use them with ggplot2 and a lot of other packages. Tibble can similarly be considered to be the tidyverse's "standard rectangular data store." You may have heard of data.tables. These are not part of the tidyverse and are instead a highly optimized, rectangular data store provided by the data.table package. It actually behaves quite differently from both Tibbles and data.frames, and is for people who need raw speed of data processing. Personally, in the kind of work that I do, I never need that speed and so I never use data.tables. I also think it's important at this point to mention matrices. Matrices are very, very different creatures from data.frames, Tibbles, and even data.tables. They are not…
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)
Separate raw and clean data folders2m 48s
-
(Locked)
Import .xlsx files with readxl in R12m 19s
-
(Locked)
Import .csv files with readr into R5m 38s
-
(Locked)
Is it a data frame or a tibble?10m 43s
-
(Locked)
Select and filter data9m 32s
-
(Locked)
Convert strings to dates with mutate6m 40s
-
(Locked)
Separating columns into multiple columns6m 36s
-
(Locked)
Filter out NA values3m 35s
-
(Locked)
Export .csv files with readr5m 6s
-
(Locked)
Export .rdata objects for later4m 51s
-
(Locked)
-
-
-
-