tetratech / baytrends

Evaluate long-term trends in the Chesapeake Bay using a Generalized Additive Modeling (GAM) approach
https://tetratech.github.io/baytrends/
12 stars 4 forks source link

modify makeSurvDF to include lo/hi specification from user #49

Closed jharcum closed 4 years ago

jharcum commented 4 years ago

Describe the enhancement makeSurvDF is currently hard coded to look for numeric fields using a "_lo" and "_hi" suffix naming convention (e.g., "conc_lo" "conc_hi") to combine into a single Surv object, i.e., conc.

Modify makeSurvDF to include a suffix argument, i.e., suffix = c("_lo", "_hi") to allow user to customize the setting

makeSurvDF <- function(df, suffix = c("_lo", "_hi") ) {
 ...

Update related documentation

jharcum commented 4 years ago

done