normalize: Matrix normalization

Description Usage Arguments Value See Also

View source: R/utils_matrix.R

Description

normalize matrix rows using given norm

Usage

1
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 Sept. 23, 2018, 1:57 a.m.