PPPPreserveOrder {SBCK} | R Documentation |
PPPPreserveOrder
Description
Set an order between cols, and preserve it by swapping values after the correction
Details
Set an order between cols, and preserve it by swapping values after the correction
Super class
SBCK::PrePostProcessing
-> PPPPreserveOrder
Methods
Public methods
Inherited methods
Method new()
Create a new PPPPreserveOrder object.
Usage
PPPPreserveOrder$new(cols = NULL, ...)
Arguments
cols
The columns to keep the order
...
Others arguments are passed to PrePostProcessing
Returns
A new 'PPPPreserveOrder' object.
Method transform()
nothing occur here
Usage
PPPPreserveOrder$transform(X)
Arguments
X
Data to transform
Returns
Xt a transformed matrix
Method itransform()
sort along cols
Usage
PPPPreserveOrder$itransform(Xt)
Arguments
Xt
Data to transform
Returns
X a transformed matrix
Method clone()
The objects of this class are cloneable with this method.
Usage
PPPPreserveOrder$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
## Build data
X = matrix( stats::rnorm( n = 20 ) , ncol = 2 )
## PPP
ppp = SBCK::PPPPreserveOrder$new( cols = base::c(1,2) )
Xt = ppp$transform(X) ## Nothing
Xti = ppp$itransform(Xt) ## Order
[Package SBCK version 1.0.0 Index]