parseReportMetadataField: Parse report metadata field

Description Usage Arguments

View source: R/utils-parse.r

Description

Given a full report object and field name, returns the metadata value for the provided field or returns the default value if the provided field does not exist in the metadata.

Usage

1
parseReportMetadataField(reportObject, field, defaultValue = NULL)

Arguments

reportObject

the object representing the full report JSON

field

the field name to read from the metadata

defaultValue

the optional default value to return if the provided field is not found in the report JSON


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