For convenience, these are generic functions for which users can write
other methods, and there are default methods for arrays. The
description here is for the
row.names(x) row.names(x) <- value
"data.frame", or any other class for which a method has been defined.
xwith no duplicated nor missing values.
NULLis also allowed: see Details.
row.namesreturns a character vector.
row.names<-returns a data frame with the row names changed.
Row names are currently allowed to be integer or character, but
for backwards compatibility (with R <= 2.4.0)=""
always return a character vector. (Use
attr(x, "row.names") if
you need to retrieve an integer-valued set of row names.)=>
NULL for the value resets the row names to
seq_len(nrow(x)), regarded as automatic.
.row_names_info for the internal representations.