normalize,data.frame_or_matrix-method {PDATK} | R Documentation

## Normalize a `data.frame` Object

### Description

Normalize a `data.frame` Object

### Usage

    ## S4 method for signature 'data.frame_or_matrix'
    normalize(object, MARGIN = 2, FUN = "proprocessCaret", ...)

### Arguments

`object` | A `data.frame` 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

The `data.frame` normalized.

[Package PDATK version 1.2.0 Index]