View source: R/utils.R View source: R/utils.R
IsNamedList | R Documentation |
Check to see if a list has names; also check to enforce that all names are present and unique
IsNamedList(x, all.unique = TRUE, allow.empty = FALSE, pass.zero = FALSE)
x |
A list |
all.unique |
Require that all names are unique from one another |
allow.empty |
Allow empty ( |
pass.zero |
Pass on zero-length lists |
TRUE
if ..., otherwise FALSE
IsNamedList(list())
IsNamedList(list(), pass.zero = TRUE)
IsNamedList(list(1, 2, 3))
IsNamedList(list(a = 1, b = 2, c = 3))
IsNamedList(list(a = 1, 2, c = 3))
IsNamedList(list(a = 1, 2, c = 3), allow.empty = TRUE)
IsNamedList(list(a = 1, a = 2, a = 3))
IsNamedList(list(a = 1, a = 2, a = 3), all.unique = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.