View source: R/tables_bivariate.R
biv_quant | R Documentation |
Bivariate table for a main quantitative vector
biv_quant(
x,
y,
xname = NULL,
yname = NULL,
na.rm = FALSE,
add_all = TRUE,
test = c("none", "anova", "kruskal.test"),
latex = TRUE,
latex_placement = "ht",
label_prefix = "",
label = "",
caption_prefix = "",
caption = "",
wb = NULL,
sheets = ""
)
x |
a quantitative variable |
y |
a discrete quantitative variable, a character or a factor |
xname |
a string used to identify x variable (used for latex captions and excel sheets) |
yname |
a string used to identify x variable (used for latex captions and excel sheets) |
na.rm |
exclude missing value group for y |
add_all |
add "All" row |
test |
one of |
latex |
output the table using |
latex_placement |
table placement for latex printing |
label_prefix |
latex label prefix (useful for a common prefix in univariate_tables and multivariate_tables). It's ignored if label is specified (eg the latter is considered full/complete/correct) |
label |
latex label |
caption_prefix |
a prefix for latex caption (useful for a common prefix in univariate_tables and multivariate_tables) |
caption |
latex caption |
wb |
an openxlsx Workbook; if not NULL the table will be saved in the workbook too, aside printing |
sheets |
optional sheet names (same length as the number of tables) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.