simpleMaths: function to find the relative frequencies of the combined...

Description Usage Arguments Examples

Description

Function which finds tokens that exsist in document B which do not exisit in document A then adds them with a frequency of the smoothing factor to an updated list of tokens and frequencies for each document. The relative frequency is then calculated

Usage

1
simpleMaths(wordFrequenciesA, wordFrequenciesB, smoothingFactor)

Arguments

wordFrequenciesA,

a wordFrequency list, generated by this package

wordFrequenciesB,

another word frequency list for reference

smoothingFactor,

the number used when the frequency of a word is zero and also the smooting factor

Examples

1
frequencies(wordFreqA, wordFreqB, 1000)

mouse0/suicideProject documentation built on May 3, 2019, 5:19 p.m.