Learn R Programming

inTextSummaryTable (version 3.3.2)

postProcessVarFlag: Post-process the summary statistics table with variable flag.

Description

This function is for internal use within the computeSummaryStatisticsTable function.

Usage

postProcessVarFlag(summaryTable, varFlag)

Value

Summary table with

Arguments

summaryTable

Summary table as created internally in computeSummaryStatisticsTable.

varFlag

Character vector, subset of var with variable(s) of type 'flag' (with 'Y', 'N' or '' for empty/non specified value). Only the counts for records flagged (with 'Y') are retained.

Author

Laure Cougnaud

Details

This includes:

  • converting the records from a flag variable for the 'variableGroup' variable from 'Y' to NA_character_

  • filter records from a flag variable with variableGroup set as 'N'