getWordFreq: Get the word frequency data.frame.

Description Usage Arguments Value Author(s) Examples

Description

Get the word frequency data.frame.

Usage

1
getWordFreq(string, onlyCN = TRUE, stopwords = NULL, useStopDic = FALSE)

Arguments

string

A character vector to calculate words frequency.

onlyCN

Keep only chinese words.

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
2
3
4
## Not run: 
getWordFreq(c("a", "a", "b", "c"), onlyCN = FALSE)

## End(Not run)

OOmegaPPanDDa/tmcn documentation built on May 7, 2019, 8:55 p.m.