Tristan Mahr explains what tibbles and tribbles are and how they compare to built-in data frames:
The name “tribble” is short for “transposed tibble” (the transposed part referring to change from column-wise creation in
tibble()
to row-wise creation intribble()
).I like to use light-weight tribbles for two particular tasks:
-
Recoding: Create a tribble of, say, labels for a plot and join it onto a dataset.
-
Exclusion: Identify observations to exclude, and remove them with an anti-join.
I’ve been more used to data frames than tibbles, but this post shows some interesting things you can do with tibbles a lot more easily than with data frames. It’s enough to make me want to use tibbles more frequently. H/T R-bloggers