createWordFreq: Create a word frequency data.frame.

Description Usage Arguments Value Author(s) Examples

View source: R/createWordFreq.R

Description

Create a word frequency data.frame.

Usage

1
2
createWordFreq(obj, onlyCN = TRUE, nosymbol = TRUE, stopwords = NULL,
  useStopDic = FALSE)

Arguments

obj

A character vector or DocumentTermMatrix to calculate words frequency.

onlyCN

Whether to keep only Chinese words.

nosymbol

Whether to keep symbols.

stopwords

A character vector of stop words.

useStopDic

Whether to use the default stop words.

Value

A data.frame.

Author(s)

Jian Li <rweibo@sina.com>

Examples

1
createWordFreq(c("a", "a", "b", "c"), onlyCN = FALSE, nosymbol = TRUE, useStopDic = FALSE)

tmcn documentation built on Aug. 4, 2019, 3 p.m.

Related to createWordFreq in tmcn...