mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-25 22:26:34 +00:00
avoid warning when using tibble (#1128)
This commit is contained in:
parent
9320ed1fb5
commit
b372feb31f
1 changed files with 3 additions and 3 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue