normalize: Matrix normalization

View source: R/utils_matrix.R

normalizeR Documentation

Matrix normalization

Description

normalize matrix rows using given norm

Usage

normalize(m, norm = c("l1", "l2", "none"))

Arguments

m

matrix (sparse or dense).

norm

character the method used to normalize term vectors

Value

normalized matrix

See Also

create_dtm


text2vec documentation built on Nov. 9, 2023, 9:07 a.m.