not.colnames {str2str} | R Documentation |
Identify Elements That are Not Colnames
Description
not.colnames
identifies which elements from nm
are not colnames of x
.
If all elements are colnames, then a character vector of length 0 is returned.
Usage
not.colnames(x, nm)
Arguments
x |
object with a colnames attribute |
nm |
character vector specifying the elements to test as colnames of |
Value
character vector containing the elements of nm
that are not colnames
of x
.
Examples
not.colnames(x = as.matrix(mtcars), nm = c("MPG","mpg"))
[Package str2str version 1.0.0 Index]