Skip to contents

Expand NA sets in a data frame where parameter is not NA

Usage

map_comm_timeframe(scen, comm = NULL)

Arguments

scen

scenario object

comm

character vector of commodity names, if not provided, all commodities retrieved from the scenario object using the collect_set_names function.

x

data frame with columns for sets and parameters

param

name of the parameter to expand sets for

full_sets

list of full sets to expand

filter_sets

list of sets with subset elements to filter

...

additional arguments

Value

data frame with expanded sets for the param parameter. The parameter value(s) are repeated for each NA element of the combination of sets.