[R] counts for grouped data
Spencer Graves
spencer.graves at pdf.com
Thu Sep 4 19:59:54 CEST 2003
Have you considered "table"?
spencer graves
Paul Green wrote:
> How does one get counts for grouped data
> from ungrouped data. For example, how can
> I get
>
> X1 X2 Count
> 1 1 1
> 1 2 2
> 2 1 1
> 2 2 1
>
> from
>
> X1 X2
> A A
> A B
> B B
> A B
> B A
>
> Thanks in advance
>
> Paul Green
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list