Normalize: Normalize numeric data

Description Usage Arguments Value Examples

View source: R/low_quality_cells.R

Description

Normalize numeric data

Usage

1
Normalize(x, func = stats::sd)

Arguments

x

numeric matrix or data.frame

func

Function, which returns a normalizer for given vector (defaul=stats::sd())

Value

Data.frame with the normalized x

Examples

1
2
Normalize(data.frame(x=c(1, 2, 3), y=c(0, 25, 100)))
Normalize(data.frame(x=c(1, 2, 3), y=c(0, 25, 100)), func=function(v) diff(range(v)))

kharchenkolab/dropestr documentation built on Sept. 18, 2020, 2:14 a.m.