USGS-R / rloadest

USGS water science R functions for LOAD ESTimation of constituents in rivers and streams.
Other
20 stars 19 forks source link

predConc match.arg bug #33

Closed jsta closed 4 years ago

jsta commented 4 years ago

Running this simple predConc example code yields an error for me:

library(rloadest)
data(app1.calib)
app1.lr <- loadReg(Phosphorus ~ model(1), data = app1.calib,
 flow = "FLOW", dates = "DATES", conc.units="mg/L",
 station="Illinois River at Marseilles, Ill.")
predConc(app1.lr, app1.calib)
Error in match.arg("by", ByOpt) : 'arg' should be one of “unit”, “day”

I think this is caused by a typo in predConc.R where: match.arg('by', ByOpt) should be match.arg(by, ByOpt)

jsta commented 4 years ago

Fixed in #34