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

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)

Arguments

x

object with a rownames attribute

nm

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

Value

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

Examples

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

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.