univ_quant: Univariate table for quantitative data.

View source: R/tables_univariate.R

univ_quantR Documentation

Univariate table for quantitative data.

Description

Univariate table for quantitative data.

Usage

univ_quant(
  x,
  latex = TRUE,
  latex_placement = "ht",
  label = NULL,
  caption = NULL,
  use_comments = TRUE,
  wb = NULL,
  sheets = NULL
)

Arguments

x

a quantitative variable, a data.frame or a list

latex

output the table using xtable::xtable

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)

Examples


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')


lbraglia/lbstat documentation built on Sept. 17, 2023, 2:30 p.m.