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 June 22, 2024, 9:24 a.m.