Description Usage Arguments Value
View source: R/skeleton_list.R
Sometimes it's convenient to store stuff in lists, i.e. if the stuff of interest contains attributes that might be needed in later functions. When these lists are recursive, this function can simplify the remaining code by creating a skeleton for the desired structure, based on the names to be used at the different levels.
1 2 | skeleton_list(names_list, default_content = NULL,
add_names_list_as_attribute = TRUE, compact = FALSE)
|
names_list |
A list-object containing vectors with the names
to be used on the different levels (unique content required),
where the rule is that the first component contains the names
to be used at the top-level, and so on. If |
default_content |
Use this argument to specify a desired
default for the "nodes" of the recursive list. The default
selection for this argument is |
add_names_list_as_attribute |
Logic value, default
|
compact |
Logical value, default |
A (recursive) list with names in accordance with those
given in names_list
, or with an index-function-attribute
as described for the compact
-argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.