Nothing
#'@title DAL Transform
#'@description A transformation method applied to a dataset.
#' If needed, the fit can be called to adjust the transform.
#'@return a `dal_transform` object.
#'@examples
#'#See ?minmax for an example of transformation
#'@export
dal_transform <- function() {
obj <- dal_base()
class(obj) <- append("dal_transform", class(obj))
return(obj)
}
#'@title Transform
#'@description Defines a transformation method.
#'@param obj a `dal_transform` object.
#'@param ... optional arguments.
#'@return transformed data.
#'@examples
#'#See ?minmax for an example of transformation
#'@export
transform <- function(obj, ...) {
UseMethod("transform")
}
#'@export
transform.default <- function(obj, ...) {
thiscall <- match.call(expand.dots = TRUE)
thiscall[[1]] <- as.name("action.default")
result <- eval.parent(thiscall)
return (result)
}
#'@title Action implementation for transform
#'@description A default function that defines the action to proxy transform method
#'@param obj object
#'@param ... optional arguments
#'@return Transformed data
#'@examples
#'#See ?minmax for an example of transformation
#'@export
action.dal_transform <- function(obj, ...) {
thiscall <- match.call(expand.dots = TRUE)
thiscall[[1]] <- as.name("transform")
result <- eval.parent(thiscall)
return(result)
}
#'@title Inverse Transform
#'@description Reverses the transformation applied to data.
#'@param obj a dal_transform object.
#'@param ... optional arguments.
#'@return dataset inverse transformed.
#'@examples
#'#See ?minmax for an example of transformation
#'@export
inverse_transform <- function(obj, ...) {
UseMethod("inverse_transform")
}
#'@export
inverse_transform.default <- function(obj, ...) {
thiscall <- match.call(expand.dots = TRUE)
thiscall[[1]] <- as.name("action.default")
result <- eval.parent(thiscall)
return (result)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.