addCrossTable: add a table made by the cross function into a ReporteRs...

Description Usage Arguments Value Author(s) Examples

View source: R/addCrossTable.r

Description

add a table made by the cross function into a ReporteRs document

Usage

1
2
3
addCrossTable(doc, crosstable, compact = FALSE, id = ".id",
  variable = "variable", value = "value", effect = "effect",
  p = "p")

Arguments

doc

a docx object created by docx function (see ReporteRs package)

crosstable

the result of cross function

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

Value

A docx object

Author(s)

David Hajage

Examples

 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)

eusebe/biostat2 documentation built on Dec. 27, 2019, 4:22 p.m.