\HeaderA{getColClasses}{Construct colClasses vector for use within read.rg function}{getColClasses}
\keyword{file}{getColClasses}
\begin{Description}\relax
Construct a colClasses vector, an argument in read.table used in read.rg
\end{Description}
\begin{Usage}
\begin{verbatim}
 getColClasses(cols,...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{cols}] a character vector of all columns to search against
\item[\code{...}] accepts any character lists, character vectors or weight
functions to match wanted columns against cols
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is an internally called function by read.rg to create a colClasses 
vector used in read.table for fast loading of only required columns in read.rg
\end{Details}
\begin{Value}
Character. A named vector of classes to assumed for the columns. Possible values are NA
(when \code{\LinkA{type.convert}{type.convert}} is used), NULL (when the column is skipped).
\end{Value}
\begin{Author}\relax
Hui Zhao
\end{Author}
\begin{References}\relax
\code{getColClasses} in limma package
\end{References}
\begin{Examples}
\begin{ExampleCode}

allcnames <- c("Block","Column","Row","Name","ID", "F635 Mean","F532 Mean","Flag","Autoflag")
Annotation <- c("Block","Column")
Columns <- list(R="F635 Mean",G="F532 Mean")

getColClasses(allcnames, Annotation, Columns)
\end{ExampleCode}
\end{Examples}

