R/param_trim_amount.R

Defines functions trim_amount

Documented in trim_amount

#' Amount of Trimming
#'
#' Used in `recipes::step_impute_mean()`.
#'
#' @inheritParams Laplace
#' @examples
#' trim_amount()
#' @export
trim_amount <- function(range = c(0, 0.5), trans = NULL) {
  new_quant_param(
    type = "double",
    range = range,
    inclusive = c(TRUE, TRUE),
    trans = trans,
    label = c(trim_amount = "Amount of Trimming"),
    finalize = NULL
  )
}
tidymodels/dials documentation built on March 18, 2024, 6:30 a.m.