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

This commit is contained in:
Ben Letham 2017-03-06 13:32:28 +02:00
parent 5e8e3ee958
commit ecc0682970

View file

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