writeIndicatorValues: Write indicator values

writeIndicatorValuesR Documentation

Write indicator values

Description

This function writes updated values for a given indicator to the Nature Index database via the Nature Index API.

Usage

writeIndicatorValues(indicatorData = NULL)

Arguments

indicatorData

Data frame of indicator values. Usually format retrieved from getIndicatorValues and updated through setIndicatorValues.

Details

Functions getIndicatorValues, setIndicatorValues, and writeIndicatorValues are used in series to update the set of values for an indicator. After retrieving the current set of values from the database using getIndicatorValues, and updating the set with setIndicatorValues, writeIndicatorValues may be used to post the updated set to the database.

Value

If posting the data fails, an error message is returned.

Author(s)

Jens Åström

See Also

getIndicatorValues, setIndicatorValues

Examples

## Not run: 
getToken()
myIndicators <- getIndicators()
myValues <- getIndicatorValues(indicatorID = 359)
updatedValues <- setIndicatorValues(myValues, year = 2019, est = 0.3)
writeIndicatorValues(updatedValues)

## End(Not run)

NINAnor/NIcalc documentation built on Oct. 26, 2023, 9:37 a.m.