R/interpolate.R

Defines functions interpolate

Documented in interpolate

#' Interpolate missing values
#'
#' Interpolates missing values provided in the training dataset using the
#' fitted model.
#'
#' @param object A fitted model object
#' @param ... Other arguments passed to methods
#'
#' @return A dataset ([tibble::tibble()] or similar) of the same structure as
#' the input dataset with missing values from the response variable replaced
#' with interpolated values.
#'
#' @section Methods:
#' \Sexpr[stage=render,results=rd]{generics:::methods_rd("interpolate")}
#'
#' @export
interpolate <- function(object, ...) {
  UseMethod("interpolate")
}

Try the generics package in your browser

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

generics documentation built on July 6, 2022, 1:08 a.m.