mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-18 21:21:22 +00:00
Syntax cleanup (#30)
`=` or `<-`, not both; explicit or implicit returns..so on
This commit is contained in:
parent
443d475468
commit
025c0fec0e
1 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ compile_stan_model <- function(model) {
|
|||
stanc <- rstan::stanc(stan.src)
|
||||
|
||||
model.name <- paste(model, 'growth', sep = '_')
|
||||
rstan::stan_model(stanc_ret = stanc, model_name = model.name)
|
||||
return(rstan::stan_model(stanc_ret = stanc, model_name = model.name))
|
||||
}
|
||||
|
||||
#' Prepare dataframe for fitting or predicting.
|
||||
|
|
@ -199,7 +199,7 @@ setup_dataframe <- function(m, df, initialize_scales = FALSE) {
|
|||
if (exists('y', where=df)) {
|
||||
df$y <- as.numeric(df$y)
|
||||
}
|
||||
df$ds = zoo::as.Date(df$ds)
|
||||
df$ds <- zoo::as.Date(df$ds)
|
||||
|
||||
df <- df %>%
|
||||
dplyr::arrange(ds)
|
||||
|
|
|
|||
Loading…
Reference in a new issue