items_to_tidy_df: Convert JSON List of Items to as Data Frame

Description Usage Arguments Value Note Examples

Description

This function takes a list of items, potentially deeply nested, and returns a tbl_df with one row per item

Usage

1

Arguments

x

list; a list object where each element is an item

Value

tbl_df

Note

This function is meant to be used internally. Only use when debugging.

Examples

1
2
3
4
5
6
7
list_dat <- list(list("name"="Item 1", 
                      "letters"=list("cap_letter"="A", 
                                     "lower_letter"="a")), 
                 list("name"="Item 2", 
                      "letters"=list("cap_letter"="B", 
                                     "lower_letter"="b"))) 
tidy_df_list <- items_to_tidy_df(list_dat)

Rinstapkg documentation built on June 8, 2019, 9:03 a.m.