Description Usage Arguments Value
View source: R/capture_names.R
A helper function created to simplify the code in other functions, primarily where an argument either can be given as an environment or as a list/vector – and where it's required to use the names in some way or another.
1 | capture_names(obj)
|
obj |
The environment, list or vector under investigation. |
A vector containing the names from obj
. Note that
this can have length zero, i.e. being character(0)
–
which happens when used upon an empty environment or on named,
but empty, lists and vectors. NULL
will be returned
when used upon a list or vector without a names attributes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.