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


text2vec documentation built on Jan. 12, 2018, 1:04 a.m.