Learn R Programming

inTextSummaryTable (version 3.3.2)

checkVarLabInclude: 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)

Value

(Updated) varLabInclude

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.

Author

Laure Cougnaud