Coerce to a fable object
as_fable(x, ...)# S3 method for tbl_ts
as_fable(x, response, distribution, ...)
# S3 method for grouped_ts
as_fable(x, response, distribution, ...)
# S3 method for tbl_df
as_fable(x, response, distribution, ...)
# S3 method for fbl_ts
as_fable(x, response, distribution, ...)
# S3 method for grouped_df
as_fable(x, response, distribution, ...)
# S3 method for forecast
as_fable(x, ..., point_forecast = list(.mean = mean))
Object to be coerced to a fable (fbl_ts
)
Additional arguments passed to methods
The character vector of response variable(s).
The name of the distribution column (can be provided using a bare expression).
The point forecast measure(s) which should be returned
in the resulting fable. Specified as a named list of functions which accept
a distribution and return a vector. To compute forecast medians, you can use
list(.median = median)
.