View source: R/utils-scenarios.R
get_baseline_year | R Documentation |
Get last year from baseline
get_baseline_year(
year,
type,
scenario_col = NULL,
scenario = NULL,
baseline_year,
type_filter = c("all", "reported", "estimated", "projected", "imputed"),
direction = c("before", "after"),
na_rm = TRUE
)
year |
(character vector) of years. |
type |
(character vector) of years. Must be the same length as |
scenario_col |
(character vector) of scenarios. Must be the same length as |
scenario |
name of scenario in which to look for the baseline value |
baseline_year |
Year integer at which to get the baseline_value |
type_filter |
(character vector) vector of types to be filtered for. |
direction |
direction in which the last value should be found. |
na_rm |
(Boolean) indicating if NA should be removed (default) from |
General scenario functions
add_scenario()
,
calculate_aarc()
,
calculate_aroc()
,
exec_scenario()
,
fill_cols_scenario()
,
flat_extrapolation()
,
get_aarr()
,
get_baseline_value()
,
get_last_value()
,
get_last_year_scenario()
,
get_latest_aarc()
,
get_percent_change_aarc()
,
get_target_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.