has_names | R Documentation |
has_names
tests if an object has names
lacks_names
tests if an object lacks names
has_names(x)
x |
an R object |
has_rownames
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.