normalize,DFrame-method {PDATK} | R Documentation |
Normalize a S4 DFrame
Object
Description
Normalize a S4 DFrame
Object
Usage
## S4 method for signature 'DFrame'
normalize(object, MARGIN = 2, FUN = "preprocessCaret", ...)
Arguments
object |
A DFrame or DataFrame object to normalize.
|
MARGIN |
An integer indicating if rows (1) or columns (2) should be
normalized. Defaults to 2 for columns.
|
FUN |
A function to normalize your data with. Should accept a
rectangular object such as a matrix , data.frame , or data.table and
return an object of the same class with the data normalized using FUN.
|
... |
Fall through parameters to FUN. For the default FUN, these are
passed to caret::preProcess to allow configuration of the normalization
method. Omitting any arguments with the default FUN will scale and center
the data.
|
Value
A normalized DFrame
object.
[Package
PDATK version 1.0.2
Index]