View source: R/utils-scenarios.R
get_target_aarc | R Documentation |
Gets the annual average rate of change (AARC or AROC) between the
baseline year and the target year to reach the target value for every
combination of iso3
and ind
present in df
.
get_target_aarc(
df,
target_value,
baseline_year,
target_year,
value_col = "value"
)
df |
Data frame in long format, where 1 row corresponds to a specific country, year, and indicator. |
target_value |
value to be reached. Used when |
baseline_year |
Year from which the scenario is measured.
Defaults to |
target_year |
Year by which the scenario should eventually be
achieved. Defaults to |
value_col |
Column name of column with indicator values. |
dataframe with AROC (in aroc
column) for every combination of
iso3
and ind
General scenario functions
add_scenario()
,
calculate_aarc()
,
calculate_aroc()
,
exec_scenario()
,
fill_cols_scenario()
,
flat_extrapolation()
,
get_aarr()
,
get_baseline_value()
,
get_baseline_year()
,
get_last_value()
,
get_last_year_scenario()
,
get_latest_aarc()
,
get_percent_change_aarc()
,
remove_unwanted_scenarios()
,
trim_values()
,
trim_years()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.