[R] contingency table

reena glowing.spikes at hotmail.com
Tue Dec 20 14:08:28 CET 2011


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.



More information about the R-help mailing list