Description Usage Arguments Details Value See Also Examples
View source: R/read_inputData.R
Function to read the input data file used in a PRMS simulation
1 | read_inputData(file, nheader, nvars, NAval = -999)
|
file |
Character, pathname to input data file |
nheader |
Integer, number of header lines, usually containing created by and station metadata, in the file |
nvars |
Integer, number of unique variables (ex. runoff, tmin, tmax; nvars=3) in the data file |
NAval |
Integer, value of missing data in statvar/data file (usually -999) |
Variables and station numbers of the data file are determined by the variable numberOfStations
which is the format read by PRMS and setup by the user prior to a simulation. This function will assign each
timeseries the column title of variable_stationNumber in the order that they are listed.
A dataframe containing the input data file with varialbe_stationNumber column titles
1 | exampleData <- read_inputData(file = "data/rghw_ALL.data")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.