removeCarryForward: Remove Carry Forward

Description Usage Arguments Details Value

View source: R/removeCarryForward.R

Description

In the old SWS, estimates were occassionally "carried forward", i.e. the estimate for the current year was just a copy of the estimate for the previous year. This function removes such estimates from the dataset.

Usage

1

Arguments

data

The data.table containing the seed data. It should have columns geographicAreaM49 and measuredItemCPC.

variable

The column name of data which contains the values that should be checked.

Details

Note: I'm not sure if this function is still relevant, as all "trended" (i.e. carried forward) values from the old system were NOT copied to the new system. However, before removing this function, we should confirm that it is not needed.

Value

The data.table with the "carried forward" values removed.


SWS-Methodology/faoswsSeed documentation built on Nov. 21, 2020, 5:43 p.m.