not.colnames: Identify Elements That are Not Colnames

View source: R/str2str_functions.R

not.colnamesR 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 x.

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"))

str2str documentation built on Nov. 21, 2023, 1:08 a.m.