tf: term frequency: get the frequency of term in doc (for...

Description Usage Arguments Value Examples

Description

term frequency: get the frequency of term in doc (for gram_size chunks) NOTE: only 'gram_size=1' is implemented right now (i.e. words) NOTE: want to add option of stemming directly from a call to 'tf()'

Usage

1
2
tf(doc, term, lower = TRUE, toss_punct = TRUE, toss_num = TRUE,
  gram_size = 1)

Arguments

doc
term
lower
toss_punct
toss_num
gram_size

Value

numeric, frequency of term in document

Examples

1
tf(doc="blah blah im tim my name is tim", term="tim")

lefft/lefftpack documentation built on May 8, 2019, 1:13 p.m.