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?

Is it a data frame or a tibble? - R Tutorial

From the course: Learning the R Tidyverse

Start my 1-month free trial

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…

Contents