\Header{selectSeries}{Extract a Subset of Series}
\methalias{selectSeries.default}{selectSeries}
\methalias{selectSeries.ts}{selectSeries}
\keyword{programming}{selectSeries}
\keyword{utilities}{selectSeries}
\keyword{ts}{selectSeries}
\begin{Description}\relax
Extract a subset of series from a tframed object.
\end{Description}
\begin{Usage}
\begin{verbatim}
    selectSeries(x, series = seqN(nseries(x)))
    ## Default S3 method:
    selectSeries(x, series = seqN(nseries(x)))
    ## S3 method for class 'ts':
    selectSeries(x, series = seqN(nseries(x)))
    \end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A tframed object.
\item[\code{series}] The subset of series to retain.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is like [ , , drop=FALSE] but retains class, series name and tframe 
information. It
also provides a methods which works with multivariate series which 
are not matrices (e.g. tfPADIdata).
\end{Details}
\begin{Value}
A tframed object.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{seriesNames}}
\code{\Link{tfPADIdata}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
    z <- selectSeries(matrix(rnorm(1000), 100,10), series=c(2, 5, 6))
\end{ExampleCode}
\end{Examples}

