indicators | R Documentation |
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(name = NULL, description = NULL, resources = NULL)
available_indicators(indicators = NULL)
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 |
register_indicator()
is called for the side-effect of registering
an indicator
available_resources()
returns a tibble listing available indicators.
## Not run:
register_indicator(
name = "treecover_area",
description = "Area of forest cover by year",
resources = c(
"gfw_treecover",
"gfw_lossyear"
)
)
## End(Not run)
available_indicators()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.