normalize: normalize

Description Usage Arguments Value See Also Examples

View source: R/normalize.R

Description

Extracts the numeric vectors from a data frame and normalizes each vector.

Usage

1
normalize(x, method = 1)

Arguments

x

data.frame or matrix

method

integer: normalization method (default: 1)

  • 0: no rescaling

  • 1: (x-min(x))/(max(x)-min(x))

  • 2: (x-mean(x))/sd(x)

Value

numeric matrix

See Also

In package normalize or at CRAN

Examples

1

smvgraph documentation built on Nov. 9, 2021, 9:06 a.m.