normalize: normalize

Description Usage Arguments Value Examples

View source: R/TeaSetClass.R

Description

normalizes or standardizes the columns of a dataframe using one of three methods: max, min-max, or zscore

Usage

1
normalize(data, type = "min-max")

Arguments

data

a 2d array, matrix, or data.frame of numeric data. Defaults to min-max

type

a string indicating how to standardize: max, min-max, or z-score

Value

normalized data

Examples

1
2
data(mtcars)
          normalize(mtcars, type = "z-score")

cmpear/TeaSet_Package documentation built on Jan. 10, 2020, 2:46 a.m.