markUpdated: Mark Updated Cells

Description Usage Arguments Value

View source: R/markUpdated.R

Description

This function compares two data.tables for differences. Note that it assumes a very specific structure, as it is intended to be used with the standardization code only. An additional column is placed on the first data.table that is named updateFlag, and it is TRUE if there is a difference and FALSE otherwise.

Usage

1
markUpdated(new, old, standParams)

Arguments

old

The original data.table with the standardization data.

standParams

The parameters for standardization. These parameters provide information about the columns of data and tree, specifying (for example) which columns should be standardized, which columns represent parents/children, etc.

data

The new data.table with the standardization data.

Value

The same data.table as new but with an additional column.


SWS-Methodology/faoswsStandardization documentation built on Feb. 7, 2022, 5:05 a.m.