> 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.