ensureDataInput: Function to ensure the data input is correct.

Description Usage Arguments Value

Description

Function to ensure the data input is correct.

Usage

1
ensureDataInput(data, requiredColumn = NULL, returnData = TRUE)

Arguments

data

The data to be checked.

requiredColumn

The required column names the data must contain.

returnData

logical, whether the data should be returned for pipe.

Value

If the data passes the check, the original data is returned, otherwise an error.


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