rvn_csv_read {RavenR} | R Documentation |
Read in generic Raven output csv files
Description
Reads in output csv files produced by Raven.
Usage
rvn_csv_read(ff = NA, tzone = "UTC", xtsformat = TRUE)
Arguments
ff |
full file path to the csv file |
tzone |
string indicating the timezone of the data in ff |
xtsformat |
boolean whether to return in xts format (if date and/or hour found) |
Details
Expects a full file path to the Raven output file.
The timezone is provided by the tzone argument as "UTC" by default, and should be adjusted by the user to the local time zone as needed, based on the model run.
Value
data frame (as xts if set with xtsformat
) read from the file
See Also
rvn_hyd_read
for reading Hydrographs output files
Examples
# create full file path
ff <- system.file("extdata","ReservoirStages.csv", package="RavenR")
# read in the Reservoir file with the generic call
myres <- rvn_csv_read(ff)
# view contents
head(myres)
[Package RavenR version 2.2.2 Index]