[R] Contingency Table - output to odfWeave not working for matrix

2010-02-20 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
Hi guys I'm hoping someone can help me with this. It should be easy but it seems to get stuck for no obvious reason! I am trying to set a report up in odfWeave so that we can re-run the same analysis at 3 time points as the data matures and provide an 'instant' report. To simplify the

Re: [R] Contingency Table - output to odfWeave not working for matrix

2010-02-20 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
Solved my own problem by using: odfTable.matrix( as.matrix ( with (mydata, table (site_id, reaction)) ) ) This message may contain confidential information. If

Re: [R] Contingency Table - output to odfWeave not working for matrix

2010-02-20 Thread Max Kuhn
Polwart Calum, Although I cannot explain the root issue, it has nothing to do with odfWeave. See the second command below. I don't know your versions etc blah blah blah... class(with (mydata, table (site_id, reaction))) [1] table class(as.matrix(with (mydata, table (site_id, reaction [1]