Description Usage Arguments Value
View source: R/tidy.table.one.R
Produces a tbl1w object, which contains summary statistics without grouping or bivariate tests.
1 2 3 4 5 6 7 8 9 10 | tableoneway(
df,
summaryTypes = NULL,
d = 1,
p.digits = 3,
fisher.simulate.p = FALSE,
trunc_binary = TRUE,
lbl = "",
caption = ""
)
|
df |
A data frame or tibble with Hmisc-brand labels. |
d |
Number of significant digits to report in (non-p-value) numbers in the tableone object. |
p.digits |
Number of significant digits to report in p-values. |
fisher.simulate.p |
If TRUE use simulated p-values for Fisher's exact test. Default is FALSE. |
trunc_binary |
Logical. If TRUE print only one row for categorical variables with 2 levels. If FALSE, binary variables are printed on two rows. Default is TRUE. Alternatively, supply a named list of logicals indicating which variables should be printed on one row. Unnamed variables in the list will be printed on one row. |
lbl |
LaTeX label to be passed to tx() for labeling the table in a LaTeX document. |
caption |
Text to be passed to tx() or md() to caption the table. |
testTypes |
A vector of length nrow(df) containing "t" for a t-test or "w" for a Wilcoxon rank-sum test; applies only to continuous variables. Leave NULL to allow the function to choose for you based on the distance between the mean and median. |
A tbl1w object that can be formatted by tx() or md().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.