getIndicatorValues: Get indicator values from the Nature Index database

getIndicatorValuesR Documentation

Get indicator values from the Nature Index database

Description

This function retrieves the current values for a given indicator. It is used both to check the current information, and as a starting point for updating the data. In case of updates, individual rows are altered by the function setIndicatorValue.

Usage

getIndicatorValues(indicatorID = NULL, years = NULL)

Arguments

indicatorID

integer identifying the indicator. Usually this is first retrieved by the getIndicators function

years

integer, the year of the values to retrieve. Default = NULL, which means you get all values.

Value

Object of class 'indicatorData', A list containing 1) a data frame of the values of the indicator and 2) a list of distribution objects identifying the uncertainties of the estimates (optional)

Author(s)

Jens Åström

See Also

setIndicatorValues for updating objects of class 'indicatorData', and getIndicators for list of accessible indicators. The vignette Distributions describes the use of these and other functions for updating data sets.

Examples

## Not run: 
myValues <- getIndicatorValues(IndicatorID = 1)

## End(Not run)


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