ensureCorrectTransfer: The function checks whether the transfer from parent to child...

Description Usage Arguments Value

Description

For more details of a transfer, see function faoswsProduction:transferParentToChild,

Usage

1
2
ensureCorrectTransfer(parentData, childData, mappingTable, returnData = TRUE,
  getInvalidData = FALSE)

Arguments

parentData

The animal slaughtered data from animal commodity.

childData

The animal slaughtered data from meat commodity.

mappingTable

The mapping table between the parent and the child.

returnData

logical, whether the data should be returned

getInvalidData

logical, this will skip the test and extract the data that is invalid.

Value

If getInvalidData is FALSE, then the data is returned when the test is cleared, otherwise an error. If getInvalidData is TRUE, then the subset of the data that is invalid is returned.


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