Description Usage Arguments Details Value See Also Examples
read_rw_csv()
reads in a CSV file created from RiverWare. If the CSV
file does not contain column names that RiverWare always uses (see Details),
then it assumes that the CSV file was not created from RiverWare and throws
an error. It also removes spaces from the column names, and adjusts the
Object.Slot
and Slot Value
columns to be ObjectSlot
and Value
,
respectively.
1 |
file |
The name of the file which the data are to be read from. Either an absolute or relative path. |
The required column names are: Run Number
, Trace Number
, Object.Slot
,
Timestep
, Slot Value
. See the CSV output section of the
RiverWare documentation
for more information on the other optional column names.
This function uses data.table::fread()
to read in
the CSV file, and forces it to expect a CSV file, expect headers, and return
data.frame
.
A tibble (data frame) containing the data in the csv.
1 2 3 4 5 | zz <- read_rw_csv(system.file(
"extdata/Scenario/ISM1988_2014,2007Dems,IG,Most",
"KeySlots.csv",
package = "RWDataPlyr"
))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.