checkVarLabInclude: Check the 'varLabInclude' variable.

View source: R/miscellaneous.R

checkVarLabIncludeR Documentation

Check the varLabInclude variable.

Description

This function ensures that:

  • variable name is included if more than one variable are specified

  • variable name is not included if no variable is specified

Usage

checkVarLabInclude(var, varLabInclude = length(var) > 1)

Arguments

var

String with variable to check.

varLabInclude

Logical, if TRUE the name of the summary statistic variable(s) (var) are included in the table. This is automatically set to TRUE if more than one variable(s) and is specified, and FALSE if only one variable is specified.

Value

(Updated) varLabInclude

Author(s)

Laure Cougnaud


inTextSummaryTable documentation built on Sept. 12, 2023, 5:06 p.m.