writeIndicatorValues | R Documentation |
This function writes updated values for a given indicator to the Nature Index database via the Nature Index API.
writeIndicatorValues(indicatorData = NULL)
indicatorData |
Data frame of indicator values. Usually format retrieved
from |
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.
If posting the data fails, an error message is returned.
Jens Åström
getIndicatorValues
, setIndicatorValues
## Not run:
getToken()
myIndicators <- getIndicators()
myValues <- getIndicatorValues(indicatorID = 359)
updatedValues <- setIndicatorValues(myValues, year = 2019, est = 0.3)
writeIndicatorValues(updatedValues)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.