2026-07-17 18:25 UTC
Replies (4)
-
@nxskok@cupoftea.social 2026-07-17 18:52
@ansate@social.coop some thoughts: - a tibble is a newer concept than a data.frame, with the intention of learning from the confusing things about data.frames. - tibbles don't have row names (on the basis that your row names should be a column in the dataframe) - if you display a tibble, you get by default the first 10 rows, on the basis that this will usually tell you if your dataframe contains the right things. - if you use read_csv etc from readr to read in data from a file, you'll get a tibble; if you use the old read.csv, read.table you'll get a data.frame.
-
@Amgine@mamot.fr 2026-07-17 18:29
@ansate@social.coop Ooo, shiny… wait, what's this? "Tibbles, a pet cat which is alleged to have wiped out Lyall's wren on Stephens Island in New Zealand." Back in a moment, I have to find out this story… #ADHD #irl
-
@geospacedman@mastodon.social 2026-07-17 18:29
@ansate@social.coop R has data frames built in for storing tabular data. tibbles are a data structure developed by a third-party company that also store tabular data. They're a bit like R's built in data frames except when they aren't. To add further confusion, there's also the datatable package that implements a third tabular data structure that's less like built-in data frames, but is very fast.
-
@defuneste@fosstodon.org 2026-07-17 18:34
@ansate@social.coop it is a data frame with opinionated methods dispatch. One quick example is to print a tibble and printing a data frame convert it to a tibble and print it. You can use class() to see before and after the conversion.