bivariate_tables: Dispatcher for (qualitative/quantitative) bivariate tables...

View source: R/tables_bivariate.R

bivariate_tablesR Documentation

Dispatcher for (qualitative/quantitative) bivariate tables and statistics.

Description

Dispatcher for (qualitative/quantitative) bivariate tables and statistics.

Usage

bivariate_tables(
  x,
  group,
  wb = NULL,
  latex = TRUE,
  exclude = NULL,
  style = c("raw", "type"),
  date_preproc = function(d) factor(format(d, "%Y-%m")),
  mr_prefixes = NULL,
  biv_perc_params = list(),
  biv_quant_params = list(test = "none"),
  biv_quali_params = list(test = "auto")
)

Arguments

x

a data.frame

group

a data.frame of 1 column

wb

a WorkBook

latex

use latex for printing (default = TRUE)

exclude

character vector of data.frame name to be ignored

style

if 'raw' display variables in the order given, if 'type' display variable by type

date_preproc

function to preprocess Date columns. By default make them Year-month factors; currently only factor, numerics and 0-1 variable are not ignored, therefore date_preproc should be a coercer to those types

mr_prefixes

variable name prefixes (character vector); each of these identify a set of variable who belong to the same multiple response question (if done with smarty_mr_splitter this should end with "_")

biv_perc_params

other options (named list) for biv_perc

biv_quant_params

other options (named list) for biv_quant

biv_quali_params

other options (named list) for biv_quali


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