View source: R/tables_univariate.R
univ_quant | R Documentation |
Univariate table for quantitative data.
univ_quant(
x,
latex = TRUE,
latex_placement = "ht",
label = NULL,
caption = NULL,
use_comments = TRUE,
wb = NULL,
sheets = NULL
)
x |
a quantitative variable, a data.frame or a list |
latex |
output the table using |
latex_placement |
table placement for latex printing |
label |
latex label |
caption |
latex caption |
use_comments |
use comments for row (variable) names, if available |
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) |
wb = openxlsx::createWorkbook()
univ_quant(x = airquality$Ozone, sheet = 'ozone', wb = wb)
univ_quant(x = airquality[, c('Ozone')], wb = wb)
univ_quant(x = airquality[, c('Ozone', 'Temp')], wb = wb)
univ_quant(list('a' = 1:10, 'b' = 2:20), wb = wb)
lbmisc::wb_to_xl(wb = wb, file = '/tmp/univ_quant.xlsx')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.