get_latest_aarc: Get the latest AARC for data frame

View source: R/utils-scenarios.R

get_latest_aarcR Documentation

Get the latest AARC for data frame

Description

Gets the annual average rate of change (AARC or AROC) between the baseline year and the year immediately preceding for every combination of iso3 and ind present in df.

Usage

get_latest_aarc(df, baseline_year, value_col = "value")

Arguments

df

Data frame in long format, where 1 row corresponds to a specific country, year, and indicator.

baseline_year

Year from which the scenario is measured. Defaults to start_year

value_col

Column name of column with indicator values.

Value

dataframe with AROC (in aroc column) for every combination of iso3 and ind

See Also

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_percent_change_aarc(), get_target_aarc(), remove_unwanted_scenarios(), trim_values(), trim_years()


gpw13/billionaiRe documentation built on Sept. 27, 2024, 10:05 p.m.