Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

not.colnames

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

Convert R Objects from One Structure to Another

v0.1.1
GPL (>= 2)
Authors
David Disabato [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.