transform-class | R Documentation |
Transform objects are simply functions that have been extended to allow for specialized dispatch. All of the “...Transform” constructors return functions of this type for use in one of the transformation modalities.
.Data
Object of class "function"
transformationId
A name for the transformation object
summary
Return the parameters
N LeMeur
linearTransform
,
lnTransform
,
logicleTransform
,
biexponentialTransform
,
arcsinhTransform
,
quadraticTransform
,
logTransform
cosTransform <- function(transformId, a=1, b=1){
t = new("transform", .Data = function(x) cos(a*x+b))
t@transformationId = transformId
t
}
cosT <- cosTransform(transformId="CosT",a=2,b=1)
summary(cosT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.