removeSingleEntryCountry: This function removes countries that has only one observation

Description Usage Arguments Details Value

Description

TODO (Michael): The by key (param$byKey) should be extended, the criteria should be 1 observation per country/item/element combination.

Usage

1

Arguments

data

The data.table object containing the data.

Details

NOTE (Michael): The application of the function is questionable. I would impute the series even if there is only one dataset. It is the best given the information set, and we should aim to improve the data collection.

Value

A data.table where countries with only a single observation are omitted from the original data.


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