Skip to content

Instantly share code, notes, and snippets.

@jtleek
Last active November 18, 2015 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtleek/ea12b5f3cd81e97aed60 to your computer and use it in GitHub Desktop.
Save jtleek/ea12b5f3cd81e97aed60 to your computer and use it in GitHub Desktop.
library(lubridate)
dt = "2015-11-18"
predict_function = function(dt){
dt_ymd = ymd(dt)
## Get some info
mday_dt = mday(dt_ymd)
wday_dt = wday(d_ymd)
## Download data
## Fit prediction
## Return prediction
return(list(ordering, prediction_intervals))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment