R/specials.R

Defines functions model_xreg

#' @importFrom stats model.frame
model_xreg <- function(...){
  model_formula <- new_formula(
    lhs = NULL,
    rhs = reduce(enexprs(...), function(.x, .y) call2("+", .x, .y))
  )
  model.frame(model_formula, data = self$data, na.action = stats::na.pass)
}

Try the feasts package in your browser

Any scripts or data that you put into this service are public.

feasts documentation built on June 25, 2024, 1:15 a.m.