Jelajahi Sumber

Make prophet the first class (#68, #16)

Ben Letham 8 tahun lalu
induk
melakukan
ecc0682970
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      R/R/prophet.R

+ 1 - 1
R/R/prophet.R

@@ -109,7 +109,7 @@ prophet <- function(df = df,
     history = NULL
   )
   validate_inputs(m)
-  class(m) <- append(class(m), "prophet")
+  class(m) <- append("prophet", class(m))
   if (fit) {
     m <- fit.prophet(m, df, ...)
   }