powered by
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)
A data.frame with all missing values filed with specified value.
- a list of nested lists with different number of elements
- a value to fill missing values in lists
sst_lists_to_df( lists = list( first_list = list(a = 1, b = 2), second_list = list(a = 2, c = 3) ), fill = 'empty' )
Run the code above in your browser using DataLab