Browse Source

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

Ben Letham 8 years ago
parent
commit
ecc0682970
1 changed files with 1 additions and 1 deletions
  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, ...)
   }