[R] Newbie cross tabulation issue

Gabor Grothendieck ggrothendieck at gmail.com
Thu Sep 9 01:55:09 CEST 2010


On Wed, Sep 8, 2010 at 6:40 PM, Jonathan Finlay <jmfinlayp at gmail.com> wrote:
> hi, i'm new in R and i need some help. Please, żdo you know a function how
> can process cross tables for many variables and show the result in one table
> who look like this?:
>
> +----------------------------------------------------+
> |------------------ |        X variable           |
> |----------------- | Xop1 | Xop2 | Xop3|.....|
> +----------------------------------------------------+
> |Yvar1 | Total | %row..........................|
> |         |  Op1 |  %row..........................|
> |         |  Op2 |  %row..........................|
> |+---------------------------------------------------+
> |Yvar2 | Op1 |  %row..........................|
> |         | Op2 |  %row...........................|
> +----------------------------------------------------+
> |Yvar3 | Op1 |  %row..........................|
> |         | Op2 |  %row...........................|
> |         | Op3 |  %row...........................|
> |+---------------------------------------------------+
>
> Like a pivot table!
>
> thanks a lot.
>

Try this:

library(Hmisc)
example(summary.formula)

library(gmodels)
example(CrossTable)

library(remix)
example(remix)

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list