normalize-data.frame_or_matrix-method: Normalize a 'data.frame' Object

Description Usage Arguments Value

Description

Normalize a data.frame Object

Usage

1
2
## 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.


bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.