Re: [R] Cross Tables with odfTable in odfweave

2009-03-09 Thread Max Kuhn
PJ, > If I use odfweave, the odfweave function produces an output file, but the > for loop produces no tables. If I use R2HTML with similar code, I just get > the last table the for loop produces. Here is a look at the code of > odfweave, which seems to be correct with syntax but doesn't produce a

Re: [R] Cross Tables with odfTable in odfweave

2009-03-09 Thread Paul Jones
Hey Marc, Your code was very helpful. You should make a new R function out of it. Actually it looks like adding margins may be a little bit tricky if I only want sums of the counts, not the percentages. If I add margins after I rbind, then R will sum together the counts with the probabilities

Re: [R] Cross Tables with odfTable in odfweave

2009-03-02 Thread Marc Schwartz
on 03/02/2009 03:11 PM Max Kuhn wrote: > PJ, > >> Hi, I've been trying to prepare some crosstables for some survey questions >> for a client. I have been using the CrossTable function in the gmodels >> package. However, this command only seems to be able to create CrossTables >> in text documents.

Re: [R] Cross Tables with odfTable in odfweave

2009-03-02 Thread Max Kuhn
PJ, > Hi, I've been trying to prepare some crosstables for some survey questions > for a client. I have been using the CrossTable function in the gmodels > package. However, this command only seems to be able to create CrossTables > in text documents. > > I've been trying to use odfTable in odfwea

[R] Cross Tables with odfTable in odfweave

2009-03-02 Thread Paul Jones
Hi, I've been trying to prepare some crosstables for some survey questions for a client. I have been using the CrossTable function in the gmodels package. However, this command only seems to be able to create CrossTables in text documents. I've been trying to use odfTable in odfweave to create