Learn R Programming

str2str (version 1.0.0)

not.rownames: Identify Elements That are Not Rownames

Description

not.rownames identifies which elements from nm are not rownames of x. If all elements are rownames, then a character vector of length 0 is returned.

Usage

not.rownames(x, nm)

Value

character vector containing the elements of nm that are not rownames of x.

Arguments

x

object with a rownames attribute

nm

character vector specifying the elements to test as rownames of x.

Examples

Run this code
not.rownames(x = as.matrix(mtcars), nm = c("Mazda RX4","mazda RX4"))

Run the code above in your browser using DataLab