R/check_step_type.R

Defines functions check_step_type

Documented in check_step_type

#' Check if the step type is valid
#'
#' Will \link{stop} if not
#' @inheritParams default_params_doc
#' @export
check_step_type <- function(step_type) {
  if (length(step_type) != 1 ||
      (step_type != "lower" && step_type != "upper")) {
    stop(
      "stretch_nltt_matrix: step_type must be either 'lower' or 'upper', ",
      "step_type supplied was '", step_type, "' instead"
      )
  }
}

Try the nLTT package in your browser

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

nLTT documentation built on June 8, 2025, 10:56 a.m.