table1 | R Documentation |
Build Table 1. Subject characteristics
table1(
x,
summaryFn1 = mean,
summaryFn2 = sd,
summaryFn1_extraArgs = list(na.rm = TRUE),
summaryFn2_extraArgs = list(na.rm = TRUE),
labelify = TRUE,
verbosity = 1L,
filename = NULL
)
x |
data.frame or matrix: Input data, cases by features |
summaryFn1 |
Function: Summary function 1. |
summaryFn2 |
Function: Summary function 2. |
summaryFn1_extraArgs |
List: Extra arguments for |
summaryFn2_extraArgs |
List: Extra arguments for |
labelify |
Logical: If TRUE, apply labelify to column names of |
verbosity |
Integer: Verbosity level. |
filename |
Character: Path to output CSV file to save table. |
The output will look like "summaryFn1 (summaryFn2)". Using defaults this will be "mean (sd)"
A data.frame, invisibly, with two columns: "Feature", "Value mean (sd) | N"
EDG
## Not run:
table1(iris)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.