R/AccessorsTransformationMethod.R

# get_transformation_method (generic) ---------------------------------------------------------

#' @title Get transformation method
#'
#' @description Get the transformation method of a transformer object.
#'
#' @param object Transformer object
#' @param ... Unused arguments
#'
#' @return Transformation method
#' @export
#'
#' @rdname transformation-method-accessor-method
setGeneric(
  "get_transformation_method",
  function(object, ...) standardGeneric("get_transformation_method"))


#' @rdname transformation-method-accessor-method
setMethod(
  "get_transformation_method",
  signature(object = "transformationPowerTransform"),
  function(object, ...) {
    return(object@method)
  }
)

Try the power.transform package in your browser

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

power.transform documentation built on April 12, 2025, 5:08 p.m.