Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

tm (version 0.5-9.1)

weightTf: Weight by Term Frequency

Description

Weight a term-document matrix by term frequency.

Usage

weightTf(m)

Arguments

m
A TermDocumentMatrix in term frequency format.

Value

  • The weighted matrix.

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.