convertVarFlag {inTextSummaryTable}R 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


[Package inTextSummaryTable version 3.3.2 Index]