powered by
has_names tests if an object has names lacks_names tests if an object lacks names
has_names
lacks_names
has_names(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
Run the code above in your browser using DataLab