[R] Tabulation

Dieter Menne dieter.menne at menne-biomed.de
Sat Oct 10 17:18:53 CEST 2009




Ashta wrote:
> 
> 
> I have a data set
> x1  x2 x3
>  1   2   1
>  1   2   3
>  2   1   2
>  1   2   1
>  3   1   1
> 
>  I want to tabulate in the following way.
>         1   2   3
>  x1    3   2   1
>  x2    2   3   0
>  x3    3   1   1
> 
> It is just like frequency distribution
> 

See function table.

Dieter

-- 
View this message in context: http://www.nabble.com/Tabulation-tp25834839p25835126.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list