\Header{strsplit}{Split the Strings in a Vector}
\keyword{character}{strsplit}
\begin{Usage}
\begin{verbatim}
strsplit(x,split)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] character vector, to be split.
\item[\texttt{split}] character string, to use as "split".
If \texttt{split} has length 0, \texttt{x} is split into single characters.
If \texttt{split} is a vector, it is re-cycled along \texttt{x}.
\end{ldescription}
\end{Arguments}
\begin{Description}
Split the Strings in \texttt{x} into substrings according to the
presence of substring \texttt{split} within them.\end{Description}
\begin{Value}
A list of length \texttt{length(x)} the \texttt{i}-th element of
which contains the vector of splits of \texttt{x[i]}.\end{Value}
\begin{SeeAlso}
\texttt{\Link{paste}} for the reverse,
\texttt{\Link{grep}} and \texttt{\Link{sub}} for string search and
manipulation; further \texttt{\Link{nchar}}, \texttt{\Link{substr}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
noquote(strsplit("A text I want to display with spaces", NULL)[[1]])

x <- c("asfef","qwerty","yuiop[","b","stuff.blah.yech")
# split x on the letter e
strsplit(x,"e")
\end{ExampleCode}
\end{Examples}

