setup_dataframe.Rd 663 B

12345678910111213141516171819202122232425
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{setup_dataframe}
  4. \alias{setup_dataframe}
  5. \title{Prepare dataframe for fitting or predicting.}
  6. \usage{
  7. setup_dataframe(m, df, initialize_scales = FALSE)
  8. }
  9. \arguments{
  10. \item{m}{Prophet object.}
  11. \item{df}{Data frame with columns ds, y, and cap if logistic growth.}
  12. \item{initialize_scales}{Boolean set scaling factors in m from df.}
  13. }
  14. \value{
  15. list with items 'df' and 'm'.
  16. }
  17. \description{
  18. Adds a time index and scales y. Creates auxillary columns 't', 't_ix',
  19. 'y_scaled', and 'cap_scaled'. These columns are used during both fitting
  20. and predicting.
  21. }
  22. \keyword{internal}