Test for 'row.names'
is.row.names
returns whether elements of a character vector are row.names of an object.
is.row.names(nm, x)
nm |
character vector. |
x |
object whose row.names are desired to be tested. |
If the object does not have any row.names, then the function will return 'FALSE'
for each element of the character vector. As a reminder, row.names
does not
respond to a manually added "row.names" attribute (e.g., to a vector). If this is
tried, then is.row.names
will return 'FALSE' for each element 'nm'.
TRUE for every element of 'nm' that is a row.name of x and FALSE otherwise. The structure is a logical vector with length = length('nm') and names = 'nm'. See details for special cases.
data("mtcars") is.row.names(x = mtcars, nm = c("Mazda RX4","mazda RX4"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.