© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
T. MailundR 4 Data Science Quick Referencehttps://doi.org/10.1007/978-1-4842-8780-4_3

3. Representing Tables: tibble

Thomas Mailund1  
(1)
Aarhus, Denmark
 

The data that the readr package returns are represented as tibble objects. These are tabular data representations similar to the base R data frames but are a more modern version.

The package that implements tibbles is tibble. You can load it using
library(tibble)
or as part of the tidyverse:
library(tidyverse)

Creating Tibbles

Tidyverse functions that create tabular data will create tibbles rather than data frames. For example, when we use read_csv to read a file into memory, the result is a tibble:
x<-read_csv(file ...

Get R 4 Data Science Quick Reference: A Pocket Guide to APIs, Libraries, and Packages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.