combine_rdfs: Combine rdf files for a set of scenarios

Description Usage Arguments Value Examples

View source: R/combine_rdfs.R

Description

combine_rdfs() creates one rdf file containing data for that rdf file from multiple scenarios.

Usage

1
combine_rdfs(rdfs, scenarios, scen_path, out_path)

Arguments

rdfs

A vector of rdf(s) to combine. There will be one rdf file created for each provided rdf file.

scenarios

A vector of scenarios. The specified rdf will be combined from all scenarios.

scen_path

Top level directory of all the specified scenarios.

out_path

Where to save the combined rdfs.

Value

Invisibly returns a vector of the file names of all the rdfs that were created.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
scens <- "Apr2020_2021,DNF,2007Dems,IG_DCP,MTOM_Most"
rdfs <- paste0(c('KeySlots','Flags'),'.rdf')
scen_path <- 'M:/Shared/CRSS/2020/Scenario'
x <- combine_rdfs(rdfs, scens, scen_path, "C:/test")

# the following would be c(TRUE, TRUE)
x == c("C:/test/KeySlots.rdf", "C:/test/Flags.rdf")

## End(Not run)

BoulderCodeHub/crssrelease documentation built on March 5, 2021, 6:19 p.m.