checkRequiredFields: Returns a list of missing required fields from the given data

Description Usage Arguments

View source: R/utils-validation.R

Description

Given some fetched data and required fields this function checks the data for the existance of all requiredFields. It also will check data returned as a data frame from a JSON array to ensure that all array entries have the required fields.

Usage

1
checkRequiredFields(data, requiredFields)

Arguments

data

The data retrieved from a fetch function

requiredFields

The list of fields that are required to be present


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.