\Header{character}{Character Vectors}
\alias{as.character}{character}
\methalias{as.character.default}{character}
\methalias{as.character.factor}{character}
\alias{is.character}{character}
\keyword{character}{character}
\keyword{classes}{character}
\begin{Description}\relax
Create or test for objects of type \code{"character"}.\end{Description}
\begin{Usage}
\begin{verbatim}
character(length = 0)
as.character(x, ...)
is.character(x)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{length}] desired length.
\item[\code{x}] object to be coerced or tested.
\item[\code{...}] further arguments passed to or from other methods.
\end{ldescription}
\end{Arguments}
\begin{Value}
\code{character} creates a character vector of the specified length.
The elements of the vector are all equal to \code{""}.

\code{as.character} attempts to coerce its argument to character type.

\code{is.character} returns \code{TRUE} or \code{FALSE} depending on
whether its argument is of character type or not.\end{Value}
\begin{Note}\relax
\code{as.character} truncates components of language objects to 500
characters (was about 70 before 1.3.1).\end{Note}
\begin{SeeAlso}\relax
\code{\Link{paste}}, \code{\Link{substr}} and \code{\Link{strsplit}}
for character concatenation and splitting,
\code{\Link{chartr}} for character translation and casefolding (e.g. upper
to lower case) and \code{\Link{sub}}, \code{\Link{grep}} etc for
string matching and substitutions.  Note that
\code{help.search(keyword = "character")} gives even more links.
\code{\Link{deparse}}, which is normally preferable to
\code{as.character} for language objects.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
form <- y ~ a + b + c
as.character(form)  ## length 3
deparse(form)       ## like the input
\end{ExampleCode}
\end{Examples}

