\Header{maNum2Logic}{Convert a numeric vector of indices to a logical vector}
\keyword{manip}{maNum2Logic}
\begin{Description}\relax
This function converts a numeric vector of indices to a logical
vector. It is used for subsetting purposes.
\end{Description}
\begin{Usage}
\begin{verbatim}
maNum2Logic(n=length(subset), subset=TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] the length of the logical vector to be produced.
\item[\code{subset}] a numeric vector of indices. A logical vector may also
be supplied, in which case it is also the value of the function.
\end{ldescription}
\end{Arguments}
\begin{Value}
a logical vector.
\end{Value}
\begin{Author}\relax
Sandrine Dudoit, \url{http://www.stat.berkeley.edu/~sandrine}.
\end{Author}
\begin{Examples}
\begin{ExampleCode}
maNum2Logic(10, 1:3)
\end{ExampleCode}
\end{Examples}

