has_rownames: Has or lacks row/column names?

Description Usage Arguments See Also Examples

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

1

Arguments

x

an R object

See Also

has_names

Examples

1
2
3
4
5
6
7
8
9
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

tester documentation built on May 2, 2019, 1:09 p.m.