Hello, I want to create contingency table. The data which should be presented in contingency table look like this.(Its a very long list. I am copying small part of it)
obs1 obs2 exp1 exp2 3 8 725 875 0 0 58 70 3 7 435 525 10 7 754 910 0 1 145 175 the table should be like this. ----------|-----------| obs1 | obs2 | ----------|-----------| exp1 | exp2 | ----------------------- I have tried to use ftable function. But it didn't work. Please help me. Regards Reena -- View this message in context: http://r.789695.n4.nabble.com/contingency-table-tp4217741p4217741.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org 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.