convertVarFlag: Convert flag variable to a format such as only the flagged...

View source: R/miscellaneous.R

convertVarFlagR Documentation

Convert flag variable to a format such as only the flagged records are counted in the summary table.

Description

Convert flag variable to a format such as only the flagged records are counted in the summary table.

Usage

convertVarFlag(x)

Arguments

x

Character or factor variable with flag variable, should contain elements: 'Y' and 'N', or ” (for missing value).

Value

Formatted factor variable with levels: 'Y' & 'N'. Empty strings have been converted to NA.

Author(s)

Laure Cougnaud


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