Description Usage Arguments Value Author(s) Examples
View source: R/addCrossTable.r
add a table made by the cross function into a ReporteRs document
1 2 3 | addCrossTable(doc, crosstable, compact = FALSE, id = ".id",
variable = "variable", value = "value", effect = "effect",
p = "p")
|
doc |
a |
crosstable |
the result of |
compact |
compact the table? |
id |
name of the 'id' column |
variable |
name of the 'variable' column |
value |
name of the 'value' column |
effect |
name of the 'effect' column |
p |
name of the 'p' column |
A docx
object
David Hajage
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(biostat2)
library(ReporteRs)
mytable <- cross(cbind(...) ~ tobgp, esoph, test = TRUE)
doc <- docx()
doc <- addCrossTable(doc, mytable)
doc <- addPageBreak(doc)
doc <- addCrossTable(doc, mytable, TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.