ensureCorrectMissingValue: The function ensure the missing value is correctly specified

Description Usage Arguments Value

Description

The function ensure the missing value is correctly specified

Usage

1
2
3
ensureCorrectMissingValue(data, valueVar = "Value",
  flagObservationStatusVar = "flagObservationStatus",
  missingObservationFlag = "M", returnData = TRUE, getInvalidData = FALSE)

Arguments

data

The data to be saved back to the database.

valueVar

The variable to be tested.

flagObservationStatusVar

The flag associated with the value.

missingObservationFlag

The value of the observation status flag which represents missing value.

returnData

logical, whether the data should be returned

getInvalidData

logical, this will skip the test and extract the data that is invalid.

Value

If getInvalidData is FALSE, then the data is returned when the test is cleared, otherwise an error. If getInvalidData is TRUE, then the subset of the data that is invalid is returned.


SWS-Methodology/faoswsEnsure documentation built on May 9, 2019, 11:47 a.m.