normalize: Normalize a matrix

View source: R/normalize.R

normalizeR Documentation

Normalize a matrix

Description

Normalize a matrix column-wise by dividing each entry by its corresponding column sum.

Usage

normalize(x, removeZero = TRUE)

Arguments

x

a matrix

removeZero

remove columns summing to zero.

Details

Columns summing to zero are removed by default.

Value

a normalized matrix


hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.