\Header{make.names}{Make Legal R Names Out of Strings}
\keyword{character}{make.names}
\begin{Usage}
\begin{verbatim}
make.names(names, unique=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{names}] character (vector) to be coerced to proper names.
\item[\texttt{unique}] logical; if \texttt{TRUE}, the resulting strings are
unique.  This may be desired for, e.g., column names.
\end{ldescription}
\end{Arguments}
\begin{Description}
Make legal \R\ names out of every \texttt{names[i]} string.
Invalid characters are translated to \texttt{"."}.\end{Description}
\begin{Value}
character vector of same length as \texttt{names} with each changed
to a legal name.\end{Value}
\begin{SeeAlso}
\texttt{\Link{names}},\texttt{\Link{character}},\texttt{\Link{data.frame}}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
make.names(c("a and b", "a_and_b"), unique=TRUE)#-> "a.and.b"  "a.and.b1"

all(make.names(letters) == letters)# TRUE

data(state)
state.name[make.names(state.name) != state.name]# those 10 with a space
\end{ExampleCode}
\end{Examples}

