View source: R/utility_functions.R
sst_lists_to_df | R Documentation |
API response might contain nested lists with different number of elements. This function fills missing elements and combine lists to a data.frame.
sst_lists_to_df(lists, fill = NA)
lists |
- a list of nested lists with different number of elements |
fill |
- a value to fill missing values in lists |
A data.frame with all missing values filed with specified value.
sst_lists_to_df(
lists = list(
first_list = list(a = 1, b = 2),
second_list = list(a = 2, c = 3)
),
fill = 'empty'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.