Skip to contents

Infills scenarios with values when cols are missing values.

Usage

fill_cols_scenario(
  df,
  scenario_col = "scenario",
  cols = list("type", "source", "use_dash", "use_calc"),
  values = list("projected", NULL, TRUE, TRUE)
)

Arguments

df

(data.frame) containing the data

scenario_col

Column name of column with scenario identifiers.

cols

(list) of columns to be infilled

values

(list) of values to infill with.