[R] Cross Tables with odfTable in odfweave

Max Kuhn mxkuhn at gmail.com
Mon Mar 9 14:36:50 CET 2009


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

odfTable produces an object that needs to be printed. At the command
line, if you type odfTable(MAT) it is implicitly calling print() to
show the results.

Inside a loop, you'll have to use print(odfTable(MAT)) to explicitly
print the results.

Max




More information about the R-help mailing list