has_rownames {tester} | R Documentation |
Has or lacks row/column names?
Description
has_rownames
tests if an object has row names
has_colnames
tests if an object has column names
has_dimnames
tests if an object has dimnames
lacks_rownames
tests if an object lacks row
names
lacks_colnames
tests if an object lacks
column names
lacks_dimnames
tests if an object
lacks dimnames
Usage
has_rownames(x)
Arguments
x |
an R object |
See Also
Examples
has_rownames(iris) # TRUE
has_colnames(iris) # TRUE
lacks_rownames(letters[1:10]) # TRUE
lacks_colnames(letters[1:10]) # TRUE
A = matrix(1:10)
has_dimnames(A) # FALSE
lacks_dimnames(A) # TRUE
[Package tester version 0.2.0 Index]