indicators: Register or list indicators in mapme.biodiversity
Description
register_indicator() is used to register a new indicator function with base
information to the package's internal environment used to inform users about
available indicators. Note, registering a custom indicator will
only have effect for the current R session.
available_indicators() returns a tibble of registered indicators with basic
information such as the required resources.
register_indicator() is called for the side-effect of registering
an indicator
available_resources() returns a tibble listing available indicators.
Arguments
name
A character vector indicating the name of the indicator.
description
A character vector with a basic description
resources
A character vector of the required resources
that need to be available to calculate the indicator. The names must
correspond with already registered resources.
indicators
If NULL returns a list of all registered indicators
(default). Otherwise only the ones specified.