Learn R Programming

text2vec (version 0.4.0)

normalize: 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

get_idf, get_dtm, create_dtm