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


dselivanov/text2vec documentation built on Nov. 16, 2023, 6:37 p.m.