Skip to contents

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