Miscellaneous utility functions
Miscellaneous utility functions
named_list(lst = NULL, name_fields = "name") is_empty(x)
lst |
A named list of objects. |
name_fields |
The components of the objects in |
x |
For |
named_list
extracts from each object in lst
, the components named by name_fields
. It then constructs names for lst
from these components, separated by a "/"
.
For named_list
, the list that was passed in but with names. An empty input results in a named list output: a list of length 0, with a names
attribute.
For is_empty
, whether the length of the object is zero (this includes the special case of NULL
).
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.