Several internal utility functions are exported for convencience in case dependent packages can make use of this functionality.
Usage
set_names(object = nm, nm)
paste_enum(x, sep = ", ", conj = " and ", quotes = "`")
coal(..., fail_null = TRUE)
unlst(x, recursive = FALSE, use_names = FALSE)
Arguments
- object, nm
- x
Character vector to
base::paste()
- sep, conj
Separation strings for all but last and last positions
- quotes
Quotes to wrap each entry in
x
with- ...
Set of objects to iterate over
- fail_null
Error if no non-null objects are present
- recursive, use_names
See
base::unlist()
Value
Function set_names()
returns a names object, paste_enum()
a
string, coal()
the first non-null object and unlst()
performs the same
action as base::unlist()
but with differing defaults.