powered by
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.
not.colnames
nm
x
not.colnames(x, nm)
character vector containing the elements of nm that are not colnames of x.
object with a colnames attribute
character vector specifying the elements to test as colnames of x.
not.colnames(x = as.matrix(mtcars), nm = c("MPG","mpg"))
Run the code above in your browser using DataLab