wordFreqFromCorpus: Create a word frequency dataframe

Description Usage Arguments Value

View source: R/textAnalysis.R

Description

Create a word frequency dataframe from a text corpus.

Usage

1
2
3
4
5
6
wordFreqFromCorpus(
  corp,
  rm_sparse = 0.99,
  word_len = c(3, 26),
  word_freq = c(1, Inf)
)

Arguments

corp

a tm text corpus object.

rm_sparse

Logical. Remove proportion of sparse terms. Default is 0.99.

word_len

Numeric vector. Min and max length of words to include. Default is c(3, 26).

word_freq

Numeric vector. Min and max frequency of words to include. Default is c(1, Inf).

Value

A data.table of word frequencies.


VOSONDash documentation built on July 27, 2020, 5:07 p.m.