weightTf: Weight by Term Frequency

Description Usage Arguments Details Value

Description

Weight a term-document matrix by term frequency.

Usage

1

Arguments

m

A TermDocumentMatrix in term frequency format.

Details

Formally this function is of class WeightingFunction with the additional attributes name and acronym.

This function acts as the identity function since the input matrix is already in term frequency format.

Value

The weighted matrix.


tm documentation built on Nov. 18, 2020, 5:07 p.m.