Learn R Programming

tm (version 0.3-1)

weightLogical: Weight Logical

Description

Weight a term-document matrix such that positive term frequencies map to Boolean TRUE values.

Usage

weightLogical(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.