freq_dist: Frequency Distribution

Description Usage Arguments Examples

View source: R/term-frequency.R

Description

Compute frequency of vocabulary in text.

Usage

1
freq_dist(text, to_r = FALSE)

Arguments

text

Text to compute frequency distributions.

to_r

Whether to return results in tidy format.

Examples

1
2
3
4
5
6
## Not run: 
txt3 <- books("text3")
fq <- freq_dist(txt3)
fq$most_common(10)

## End(Not run)

news-r/nltk documentation built on Nov. 4, 2019, 9:40 p.m.