text2vec (version 0.6.4)

normalize: Matrix normalization

Description

normalize matrix rows using given norm

Usage

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

Value

normalized matrix

Arguments

m

matrix (sparse or dense).

norm

character the method used to normalize term vectors

See Also

create_dtm