Scale: Center and normalize numeric data

Description Usage Arguments Value Examples

View source: R/low_quality_cells.R

Description

Center and normalize numeric data

Usage

1
Scale(x, center_func = min, norm_func = max)

Arguments

x

numeric matrix or data.frame

norm_func

Function, which returns a normalizer for given vector (default=max())

cent_func

Function, which returns a center for given vector (default=min())

Value

Data.frame with the centered and normalized x

Examples

1
Scale(data.frame(x=c(1, 2, 3), y=c(0, 25, 100)))

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