WeightFunction: Weighting Function
DescriptionConstruct a weighting function for term-document matrices.
WeightFunction(x, name, acronym)
A function which takes a
with term frequencies as input, weights the elements, and returns
the weighted matrix.
A character naming the weighting function.
A character giving an acronym for the name of the
- An object of class
WeightFunction which extends the class
function representing a weighting function.
weightCutBin <- WeightFunction(function(m, cutoff) m > cutoff,
"binary with cutoff", "bincut")