normalise: This function normalises the denormalised data assuming the...

Description Usage Arguments Value

Description

This function normalises the denormalised data assuming the structure given by the SWS specification.

Usage

1
2
3
4
5
normalise(denormalisedData, areaVar = "geographicAreaM49",
  itemVar = "measuredItemCPC", elementVar = "measuredElement",
  yearVar = "timePointYears", flagObsVar = "flagObservationStatus",
  flagMethodVar = "flagMethod", valueVar = "Value",
  removeNonExistingRecords = TRUE)

Arguments

denormalisedData

The data.table or data.frame object which is denormalised in the form returned by the GetData function when the normalised argument is set to FALSE.

areaVar

The column name corresponding to the geographic area.

itemVar

The column name corresponding to the commodity item.

elementVar

The column name corresponding to the measured element.

yearVar

The column name corresponding to the year.

flagObsVar

The column name corresponding to the observation status flag.

flagMethodVar

The column name corresponding to the method flag.

valueVar

The column name corresponding to the value.

removeNonExistingRecords

logical, whether records where flag observation and method are NA should be removed.

Value

A normalised data.table or data.frame object (depending on the type of object passed in as denormalisedData) in the same form returned by the GetData function when the normalised argument is set to TRUE.


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