\HeaderA{wtVariables}{Read RGList from Image Analysis Output Files}{wtVariables}
\keyword{file}{wtVariables}
\begin{Description}\relax
Extracts variable names from weight functions such as \code{wtarea}, \code{wtflags}, \code{wtIgnore.Filter} and user defined functions for fast loading in \code{read.maimages}.
\end{Description}
\begin{Usage}
\begin{verbatim}
wtVariables(x, fun)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] A character vector of all columns to search against
\item[\code{fun}] A weight function to search for any of the possible columns in x
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This is an internally called function by \code{getColClasses} which constructs a colClasses vector for fast loading of only required columns in \code{read.maimages}
\end{Details}
\begin{Value}
Vector of columns required within read.maimages
\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getColClasses}{getColClasses}}
\code{\LinkA{read.table}{read.table}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
searchcols <- c("area","Flags","Ignore Filter")
wtVariables(searchcols, wtarea)
wtVariables(searchcols, wtflags)
wtVariables(searchcols, wtIgnore.Filter)
rm(searchcols) # tidy up
\end{ExampleCode}
\end{Examples}


