Rdocumentation
powered by
Learn R Programming
prophet (version 0.1)
setup_dataframe: Prepare dataframe for fitting or predicting.
Description
Adds a time index and scales y.
Usage
setup_dataframe(m, df, initialize_scales = FALSE)
Arguments
m
Prophet object.
df
Data frame with columns ds, y, and cap if logistic growth.
initialize_scales
Boolean set scaling factors in m from df.
Value
list with items 'df' and 'm'.