View source: R/getAllListNames.R
getAllListNames | R Documentation |
Get all names from all elements of a nested list and output into a data.table
getAllListNames(list_ls)
list_ls |
named list to get names of |
Calls listNames() internally to get all of the names. Output is then wrangled into a data.table
data.table with ncol = max list depth. One row for every list_ls$elementName$elementName$etc. If different elements have different depths, shallower elements are padded with NAs. Example: If list_ls$element1$element1Child1$element1Child1Grand1 and list_ls$element2$element2Child1 are both present, then they will be output: [1] element1 element1Child1 element1Child1Grand1 [2] element2 element2Child1 NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.