\Header{row.names}{Get and Set Row Names for Data Frames}
\methalias{row.names.data.frame}{row.names}
\methalias{row.names.default}{row.names}
\alias{row.names<\Rdash}{row.names}
\methalias{row.names<\Rdash.data.frame}{row.names}
\methalias{row.names<\Rdash.default}{row.names}
\keyword{classes}{row.names}
\keyword{methods}{row.names}
\begin{Description}\relax
All data frames have a row names attribute, a character vector of
length the number of rows with no duplicates nor missing values.

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 \code{data.frame} method.
\end{Description}
\begin{Usage}
\begin{verbatim}
row.names(x)
row.names(x) <- value
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] object of class \code{"data.frame"}, or any other class for
which a method has been defined.
\item[\code{value}] a vector with the same length as the number of rows of
\code{x}, to be coerced to character.  Duplicated or missing values
are not allowed.
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{row.names} returns a character vector.

\code{row.names<-} returns a data frame with the row names changed.
\end{Value}
\begin{Note}\relax
\code{row.names} is similar to \code{\Link{rownames}} for arrays, and
it has a method that calls \code{rownames} for an array argument.
\end{Note}
\begin{References}\relax
Chambers, J. M. (1992)
\emph{Data for models.}
Chapter 3 of \emph{Statistical Models in S}
eds J. M. Chambers and T. J. Hastie, Wadsworth \& Brooks/Cole.
\end{References}
\begin{SeeAlso}\relax
\code{\Link{data.frame}}, \code{\Link{rownames}}.
\end{SeeAlso}

