diff --git a/R/R/prophet.R b/R/R/prophet.R index da9174b..2f1ff95 100644 --- a/R/R/prophet.R +++ b/R/R/prophet.R @@ -344,9 +344,9 @@ time_diff <- function(ds1, ds2, units = "days") { setup_dataframe <- function(m, df, initialize_scales = FALSE) { if (exists('y', where=df)) { df$y <- as.numeric(df$y) - } - if (any(is.infinite(df$y))) { - stop("Found infinity in column y.") + if (any(is.infinite(df$y))) { + stop("Found infinity in column y.") + } } df$ds <- set_date(df$ds) if (anyNA(df$ds)) {