Re: [R] Merging tables of differing lengths

From: hadley wickham <>
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 mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.