Rinstapkg (version 0.1.0)

items_to_tidy_df: Convert JSON List of Items to as Data Frame

Description

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

Usage

items_to_tidy_df(l)

Arguments

x

list; a list object where each element is an item

Value

tbl_df

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab