normalize: Normalize cell counts

Description Usage Arguments Examples

View source: R/cleaning_functions.R

Description

Wrapper functon to YeoJohnson transformation from recipes package. Similar transformation to boxcox, but it accepts also 0 (and negative) values.

Usage

1

Arguments

x

Numeric vector with values to normalize

Examples

1
2
3
4
5
6
7
x <- rpois(100, 3)
y <- normalize(x)

par(mfrow=c(1,2))
hist(x)
hist(y)
par(mfrow=c(1,1))

valeriabonapersona/abc4d documentation built on Dec. 23, 2021, 2:09 p.m.