talira

Simple data frames for R

open sourceMITfree

tibble is the tidyverse package that provides the tibble (tbl_df), a stricter and better-formatted take on R's data frame. Tibbles do less than data frames on purpose: they never change column names or types, don't partially match column names, warn when a column that doesn't exist is accessed, and print only what fits the screen with each column's type. It's the data frame that dplyr, tidyr and the rest of the tidyverse return.

Problems it solves

  • R data frames that print thousands of rows and silently partial-match column names
  • a stricter data frame in R that catches typos in column names
  • build a small table inline in R code by rows

Features

  • tibble() and tribble() to build data frames, and as_tibble() to convert existing objects
  • printing that shows only the rows and columns that fit, with each column's type
  • no partial matching of column names, and a warning for columns that don't exist
  • never converts strings to factors or changes column names