ensureProductionOutputs: Check Production Inputs

View source: R/ensureProductionOutputs.R

ensureProductionOutputsR Documentation

Check Production Inputs

Description

This function is designed to ensure that the dataset to be saved is valid.

Usage

ensureProductionOutputs(data, processingParameters, formulaParameters,
  testImputed = FALSE, testCalculated = FALSE, domain = "agriculture",
  dataset = "aproduction", returnData = TRUE, normalised = TRUE)

Arguments

data

A data.table containing the data.

processingParameters

A list containing the parameters to be used in the processing algorithms. See ?defaultProcessingParameters for a starting point.

formulaParameters

A list holding the names and parmater of formulas. See productionFormulaParameters.

testImputed

logical, whether to test imputation result

testCalculated

logical, whether to test calculated result.

domain

The domain to be saved back

dataset

The dataset to be saved back

returnData

logical, whether the data should be returned

normalised

logical, whether the data is normalised

Value

The original data if all tests are passed


SWS-Methodology/faoswsProduction documentation built on March 21, 2023, 8:27 p.m.