normalize: Normalize a vector in a matrix

Description Usage Arguments

View source: R/normalize.R

Description

Return normalized vector in a word-context or term-document matrix

Usage

1
normalize(x, margin = 1)

Arguments

margin

The direction of comparison. If "1", normalization will be computed for a row. If "2", normalization will be computed over a column.

mat

A word-context matrix

term

The word you are evaluating


michaelgavin/empson documentation built on May 22, 2019, 9:50 p.m.