prep_var: Variable summary on stratification level

View source: R/prep_var.R

prep_varR Documentation

Variable summary on stratification level

Description

Variable summary on stratification level

Usage

prep_var(
  x,
  y,
  x.multi = F,
  y.multi = F,
  x.dtype = c("num", "str", "fac"),
  x.levs = NULL,
  y.dtype = c("num", "str", "fac"),
  y.levs = NULL,
  n_perc = 5
)

Arguments

x

variable for summary stats

y

stratification variable

x.multi

logic, indicating if x is mult-response variable variable to be cleaned

y.multi

logic, indicating if y is mult-response variable variable to be cleaned

x.dtype

data type of x ('num', 'str', 'fac', logic)

x.levs

levels of x in case x is factor

y.dtype

data type of y ('num', 'str', 'fac', logic)

y.levs

levels of y in case y is factor

n_perc

frequency cutoff in percentage to combine categorical levels into class 'other'

Value

table ready to export


tkimhofer/cleansing documentation built on Oct. 25, 2022, 1:12 a.m.