removeSingleEntryCountry: This function removes countries that has only one observation

View source: R/removeSingleEntryCountry.R

removeSingleEntryCountryR Documentation

This function removes countries that has only one observation

Description

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

Usage

removeSingleEntryCountry(data)

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 24, 2024, 6:57 a.m.