Description Usage Arguments See Also Examples
has_names
tests if an object has names
lacks_names
tests if an object lacks names
1 | has_names(x)
|
x |
an R object |
1 2 3 4 5 6 7 8 9 | set.seed(1)
x <- y <- runif(10)
names(x) = letters[1:10]
has_names(x) # TRUE
has_names(y) # FALSE
lacks_names(x) # FALSE
lacks_names(y) # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.