View source: R/add_predictors.R
| add_interval_variables | R Documentation | 
Function to add interval variables
add_interval_variables(
  time_frame = NULL,
  variables = NULL,
  category = NULL,
  lookback = lubridate::hours(48),
  window = lookback,
  fixed_interval_start = NULL,
  fixed_interval_end = NULL,
  start_bound = ">=",
  end_bound = "<=",
  stats = c(mean = mean, min = min, max = max),
  impute = TRUE,
  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  | 
lookback | 
 A lubridate instant, length of time in the past to include  | 
window | 
 A lubridate instant, break/interval to divide lookback  | 
stats | 
 A list of summary stats  | 
impute | 
 Last observation carry forward  | 
output_file | 
 Logical, whether or not to output to file or console  | 
log_file | 
 Logical, whether or not to write to log  | 
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.