is.rownames {str2str} | R Documentation |
Test for 'rownames'
Description
is.rownames
returns whether elements of a character vector are rownames of an object.
Usage
is.rownames(nm, x)
Arguments
nm |
character vector. |
x |
object whose rownames are desired to be tested. |
Details
If the object does not have any rownames, then the function will return 'FALSE' for each element of the character vector.
Value
TRUE for every element of 'nm' that is a rowname of x and FALSE otherwise. The structure is a logical vector with length = length('nm') and names = 'nm'. See details for special cases.
Examples
data("mtcars")
is.rownames(x = as.matrix(mtcars), nm = c("Mazda RX4","mazda RX4"))
[Package str2str version 1.0.0 Index]