[R] Crosstabs

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jul 7 12:15:10 CEST 2006


Bi-Info (http://members.home.nl/bi-info) wrote:
> Dear Users,
> 
> I'm a complete novice to R.
> 
> I need to do a crosstabs in R, but my data is almost completely 
> alphanumeric (with some variables scaled). The Table routine does not 
> seem to accept alphanumeric data. What should I do? Do I need to recode 
> it? How should I do that?


Works for me:

  table(c("a", "a", "b"), c("a", "c", "c"))

Uwe Ligges


> 
> Thanks in advance,
> 
> Wilfred
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



More information about the R-help mailing list