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,
verbose = TRUE,
filename = NULL
)
x |
data.frame or matrix: Input data, cases by features |
summaryFn1 |
Function: Summary function 1. Default = |
summaryFn2 |
Function: Summary function 2. Default = |
summaryFn1.extraArgs |
List: Extra arguments for |
summaryFn2.extraArgs |
List: Extra arguments for |
labelify |
Logical: If TRUE, apply labelify to column names of |
verbose |
Logical: If TRUE, print messages to console. |
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"
E.D. Gennatas
table1(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.