updateMissingFlags: Update Missing Flags

Description Usage Arguments

Description

Some data from the statistical working system may have missing values for observations but the observation flag may indicate that this value is not missing. This function updates those flags by assigning them a missing flag ("M") in the case where that observation is missing. This function is similar to remove0M, which assigns NA's to values where the observation flag is "M" (sort of the opposite of this function).

Usage

1
updateMissingFlags(data, value, flag, naFlag = "M")

Arguments

data

The data.table object containing the values.

value

The value of the observation.

flag

The flag of the observation.

naFlag

The value of the flag which denotes missing value.


mkao006/sws_util documentation built on May 23, 2019, 1:06 a.m.