rdf_to_excel: Convert rdfs to Excel using RdfToExcel

Description Usage Arguments Value Examples

View source: R/rdf_to_excel.R

Description

rdf_to_excel() calls the CADSWES provided RdfToExcel tool for the specified rdfs. The RdfToExcelExecutable.exe should be found when searching the Path environment variable, otherwise this function will error.

Usage

1
rdf_to_excel(rdfs, path, xlsx = NULL)

Arguments

rdfs

Vector of rdf files. Should end in ".rdf" and exist in the specified path

path

Folder containing the rdf files. This is also where the Excel files will be created.

xlsx

The Excel file names. If NULL, then will use the same file names as the rdf file names. Otherwise, rename them to names specified here. If specifying names, this must have the same length as rdfs and each name should end in ".xlsx".

Value

Invisibly returns the absolute path to all created Excel files.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
scen_path <- "M:/Shared/CRSS/2020/Scenario/Feb2020_2021,DNF,2007Dems,IG_DCP"
rdfs <- c('KeySlots.rdf','SystemConditions.rdf')
# will save excel files as KeySlots.xlsx and SystemConditions.xlsx
rdf_to_excel(rdfs, scen_path)
# or rename to Feb2020_KeySlots.xlsx and Feb2020_SystemConditions.xlsx
xlsx <- c("Feb2020_KeySlots.xlsx", "Feb2020_SystemConditions.xlsx")
rdf_to_excel(rdfs, scen_path, xlsx)

## End(Not run)

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