Re: [R] Merging tables of differing lengths

From: hadley wickham <h.wickham_at_gmail.com>
Date: Tue 17 Oct 2006 - 20:39:19 GMT

> What I want to do is merge these two tables into a 2X10 table in order
> to do a chi-square test. Given the unequal number of columns, all my

You might want to try something like:

levs <- unique(c(wintype1, wintype2))
table(factor(wintype1, levels=lev))
table(factor(wintype2, levels=lev))

Hadley



R-help@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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Oct 18 06:44:17 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 17 Oct 2006 - 22:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.