\HeaderA{DataTable-stats}{Statistical modeling with DataTable}{DataTable.Rdash.stats}
\aliasA{xtabs,ANY,DataTable,ANY,missing-method}{DataTable-stats}{xtabs,ANY,DataTable,ANY,missing.Rdash.method}
\aliasA{xtabs,ANY,DataTable-method}{DataTable-stats}{xtabs,ANY,DataTable.Rdash.method}
\begin{Description}\relax
A number of wrappers are implemented for performing statistical
procedures, such as model fitting, with \code{\LinkA{DataTable}{DataTable.Rdash.class}}
objects.
\end{Description}
\begin{Section}{Tabulation}
\describe{
\item[] \code{xtabs(formula = \textasciitilde{}., data, subset, na.action, 
        exclude = c(NA, NaN), drop.unused.levels = FALSE)}:
Like the original \code{\LinkA{xtabs}{xtabs}}, except \code{data} is a
\code{DataTable}.

}
\end{Section}
\begin{SeeAlso}\relax
\code{\LinkA{DataTable}{DataTable.Rdash.class}} for general manipulation,
\code{\LinkA{DataFrame}{DataFrame.Rdash.class}} for an implementation that mimics
\code{data.frame}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  df <- DataFrame(as.data.frame(UCBAdmissions))
  xtabs(Freq ~ Gender + Admit, df)
\end{ExampleCode}
\end{Examples}

