removeInvalidFlag: This function has been built in order to transform all the...

Description Usage Arguments Details

Description

This function has been built in order to transform all the values corresponding to ivalid flag combinations into NA M u and activate the imputation process.

Usage

1
2
3
4
5
removeInvalidFlag(data, valueVar = "Value",
  observationFlagVar = "flagObservationStatus",
  methodFlagVar = "flagMethod", missingObservationFlag = "M",
  missingMethodFlag = "u", normalised = TRUE,
  denormalisedKey = "measuredElement", flagValidTable = NULL)

Arguments

data

The data.table object to be manipulate

valueVar

The column name of data which contains the values for the variable to be modified.

observationFlagVar

The column name of the observation flag corresponding to value.

methodFlagVar

The column name of the method flag corresponding to value.

missingObservationFlag

The character value which is used to represent missing values in the observation flag. This value will be put in any column containing imputation data that is removed.

missingMethodFlag

The character value which is used to represent missing values in the method flag. This value will be put in any column containing imputation data that is removed.

normalised

logical, whether the data is normalised

denormalisedKey

optional, only required if the input data is not normalised.It is the name of the key that denormalises the data.

flagValidTable

Table containing the Valid/Invalid and Protected/Non protected flag combinations

Details

flagValidTable Table containing valid and protected flag combination. This table is generally recorded into the Flag package.


SWS-Methodology/faoswsProcessing documentation built on June 19, 2019, 5:14 p.m.