\HeaderA{cdfOrderColumnsBy}{Orders the columns of fields according to the values in a certain row of another field in the same CDF group}{cdfOrderColumnsBy}
\keyword{programming}{cdfOrderColumnsBy}
\keyword{internal}{cdfOrderColumnsBy}
\begin{Description}\relax
Orders the columns of fields according to the values in a certain row of another field in the same CDF group.
Note that this method requires that the group fields are matrices.

This \code{\LinkA{function}{function}} is design to be used with \code{\LinkA{applyCdfGroups}{applyCdfGroups}}()
on an Affymetrix Mapping (SNP) CDF \code{\LinkA{list}{list}} structure.
\end{Description}
\begin{Usage}
\begin{verbatim}cdfOrderColumnsBy(groups, field, row=1, ...)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{groups}] A \code{\LinkA{list}{list}} of groups.
\item[\code{field}] The field whose values in row \code{row} are used to order
the other fields.
\item[\code{row}] The row of the above field to be used to find the order.
\item[\code{...}] Optional arguments passed \code{\LinkA{order}{order}}().
\end{ldescription}
\end{Arguments}
\begin{Value}
Returns a \code{\LinkA{list}{list}} structure of groups.
\end{Value}
\begin{Author}\relax
Henrik Bengtsson (\url{http://www.braju.com/R/})
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{cdfOrderBy}{cdfOrderBy}}().
\code{\LinkA{applyCdfGroups}{applyCdfGroups}}().
\end{SeeAlso}

