Calculates a normal lake stage envelope score
norm_env(stg.data, allinfo = FALSE)
stg.data | see details |
---|---|
allinfo | TRUE/FALSE if TRUE, the function will return values used in computing score |
Returns a data.frame
of original data and normal stage elevation score.
The input stg.data
is a data.frame
with columns:
Date
(as a POSIXct
or Date
variable)
Data.Value
as stage elevation data in feet (NGVD29)
# Example dataset (not real data) dates=seq(as.Date("2016-01-01"),as.Date("2016-02-02"),"1 days") dat=data.frame(Date=dates,Data.Value=runif(33,12,18)) score=norm_env(dat) # END