Row Names from a Dataset

DESCRIPTION:

Gives the names of the rows in a 1- or 2-dimensional dataset.

USAGE:

name.rows(x) 

REQUIRED ARGUMENTS:

x
1- or 2-dimensional dataset whose row names will be returned.

VALUE:

The names of the rows in x (which is names(x) if it is a 1-dimensional dataset).

SEE ALSO:

, , , .

EXAMPLES:

# all "New" states 
name.rows(state.x77)[regexpr("New.*", name.rows(state.x77)) > 0]