Learn R Programming

SWTools (version 1.1.0)

read_res.csv: Function to import a Source .res.csv File Returns data (as a Data Frame, Zoo, or tibble) as a time Series with all Results Read Source .res.csv file into a data table or zoo time series

Description

Function to import a Source .res.csv File Returns data (as a Data Frame, Zoo, or tibble) as a time Series with all Results Read Source .res.csv file into a data table or zoo time series

Usage

read_res.csv(resFile, returnType = "df")

Value

Data in the format selected with all data read in from the Source .res.csv file

Arguments

resFile

A character string representing the full file path of the .res.csv file

returnType

A character string to set the return type: "z", "t", "df". If not matching "t" (tibble) or "z" (zoo), data frame returned.

Examples

Run this code
 
if (FALSE) {
X = read_res.csv("./SWTools/extdata/Scenario1.res.csv",returnType="t")
}

Run the code above in your browser using DataLab