Learn R Programming

tm (version 0.4)

weightTf: Weight By Term Frequency

Description

Weight a term-document matrix by term frequency.

Usage

weightTf(x)

Arguments

x
A TermDocumentMatrix in term frequency format.

Value

  • The weighted matrix.

Details

Formally this function is a WeightingFunction with the additional slots Name and Acronym.

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