read_prms_data: Read in a PRMS data file

Description Usage Arguments Value References

View source: R/read_prms_data.R

Description

read_prms_data reads in a PRMS data file and returns it as a data frame

Usage

1
2
read_prms_data(path = paste(getwd(), "input/input.data", sep = "/"),
  col_names = NULL, NA_flag = -999)

Arguments

path

path to the data file; the default searches for the data file in an "input" subfolder of the working directory

col_names

optional character vector specifying the column names.

NA_flag

optional flag specifying the data values that need to be converted to NA; defaults to -999

Value

a data frame

References

Markstrom, S.L., Regan, R.S., Hay, L.E., Viger, R.J., Webb, R.M.T., Payn, R.A., and LaFontaine, J.H., 2015, PRMS-IV, the precipitation-runoff modeling system, version 4: U.S. Geological Survey Techniques and Methods, book 6, chap. B7, 158 p., https://dx.doi.org/10.3133/tm6B7, https://pubs.usgs.gov/tm/6b7/pdf/tm6-b7.pdf


cneyens/prms documentation built on May 19, 2019, 1:42 a.m.