R manual update

This commit is contained in:
Ben Letham 2021-03-04 17:17:51 -08:00
parent 612934695b
commit b7a583ec63
2 changed files with 32 additions and 5 deletions

View file

@ -4,17 +4,16 @@
\alias{set_date}
\title{Convert date vector}
\usage{
set_date(ds = NULL, tz = "GMT")
set_date(ds)
}
\arguments{
\item{ds}{Date vector, can be consisted of characters}
\item{tz}{string time zone}
\item{ds}{Date vector}
}
\value{
vector of POSIXct object converted from date
}
\description{
Convert the date to POSIXct object
Convert the date to POSIXct object. Timezones are stripped and replaced
with GMT.
}
\keyword{internal}

View file

@ -0,0 +1,28 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/diagnostics.R
\name{single_cutoff_forecast}
\alias{single_cutoff_forecast}
\title{Forecast for a single cutoff.
Used in cross_validation function when evaluating for multiple cutoffs.}
\usage{
single_cutoff_forecast(df, model, cutoff, horizon.dt, predict_columns)
}
\arguments{
\item{df}{Dataframe with history for cutoff.}
\item{model}{Prophet model object.}
\item{cutoff}{Datetime of cutoff.}
\item{horizon.dt}{timediff forecast horizon.}
\item{predict_columns}{Array of names of columns to be returned in output.}
}
\value{
Dataframe with forecast, actual value, and cutoff.
}
\description{
Forecast for a single cutoff.
Used in cross_validation function when evaluating for multiple cutoffs.
}
\keyword{internal}