Introduction
Data requests to the OIDA API are returned as tibbles. Tibbles are
special data structures that allow for lists to be nested within the
column of a data frame. The tibble
package is required to
create and work with tibbles.
Rectangling tibbles
Extracting list elements from a tibble column is informally known as “rectangling.” The process requires patience and vignettes are available for assistance.
Flattening tibbles
A user may choose to work with the tibble or flatten the file to a
tabular form like the more traditional and ubiquitous data frame. There
are at least two choices: (1) purrr::flatten
or (2)
jsonlite::flatten
.
Reference
Hadley Wickham and Garret Grolemund (2017). R for Data Science-Tibbles, O’Reilly Media.