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

View source: R/miscellaneous.R

postProcessVarFlagR Documentation

Post-process the summary statistics table with variable flag.

Description

This function is for internal use within the computeSummaryStatisticsTable function.

Usage

postProcessVarFlag(summaryTable, varFlag)

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.

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'

Value

Summary table with

Author(s)

Laure Cougnaud


inTextSummaryTable documentation built on June 22, 2024, 9:24 a.m.