Learn R Programming

tm (version 0.3-1)

weightTf: Weight By Term Frequency

Description

Weight a term-document matrix by term frequency.

Usage

weightTf(m)

Arguments

m
A dgCMatrix in term frequency format.

Value

  • The weighted dgCMatrix.

Details

Formally this function is a WeightingFunction with the additional slot Name.

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