Calculates a recovery lake stage envelope score

rec_env(stg.data, allinfo = FALSE)

Arguments

stg.data

see details

allinfo

TRUE/FALSE if TRUE, the function will return values used in computing score

Value

Returns a data.frame of original data and normal stage elevation score.

Details

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)

Examples

# 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=rec_env(dat) # END