Learn R Programming

inTextSummaryTable (version 3.3.2)

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

Value

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

Arguments

x

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

Author

Laure Cougnaud