getAllListNames: Get List Names Pretty

View source: R/getAllListNames.R

getAllListNamesR Documentation

Get List Names Pretty

Description

Get all names from all elements of a nested list and output into a data.table

Usage

getAllListNames(list_ls)

Arguments

list_ls

named list to get names of

Details

Calls listNames() internally to get all of the names. Output is then wrangled into a data.table

Value

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


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.