add_rolling_outcomes | R Documentation |
Add rolling outcomes
add_rolling_outcomes(
time_frame = NULL,
variables = NULL,
category = NULL,
lookahead = lubridate::hours(48),
window = lookahead,
stats = c(mean = mean, min = min, max = max),
impute = FALSE,
output_file = TRUE,
log_file = TRUE,
check_size_only = FALSE,
last_chunk_completed = NULL
)
time_frame |
A time frame object |
variables |
A vector or list of variable names |
category |
A vector or list of category names |
lookahead |
A lubridate instant, how far into the future to predict outcome |
window |
A lubridate instant, break/interval to divide lookahead |
stats |
A list of summary stats |
impute |
Carry forward last value |
output_file |
Logical, whether or not to output to file or console |
log_file |
Logical, whether or not to write to log |
check_size_only |
Logical, returns expected number of rows for predictor or predictor chunk if applicable |
last_chunk_completed |
Integer, the previous chunk completed if chunking is used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.