[R] Crosstabulation

Kurt Hornik hornik at ci.tuwien.ac.at
Mon Sep 25 00:26:29 CEST 2000


>>>>> Murray Jorgensen writes:

> I can't seem to find a function in R similar to Splus crosstabs() for
> creating a multi-way table from factors and a count vector.

R 1.2 (r-devel) has a function xtabs() which provides a formula
interface to cross tabulation.

In R 1.1, table() or ftable() might also do what you want.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list