WordFreqTable: Prints the top words found in a corpus as specified by the...

Description Usage Arguments Author(s) Examples

Description

Prints the top number or percentage of words from text that has been initialized to work as text in R.

Usage

1
WordFreqTable(text, top = 100, format = 'count')

Arguments

text

a text object that has been initialized using the InitializeText function.

top

an integer greater than 0 for format type 'count' or an integer greater than 0 and less than or equal to 100 for format type 'percent'. Determines the number of words, for 'count', or the percent of words, for 'percent', to plot.

format

must either be specified as 'count' or 'percent'. Use with the 'top' argument to determine how many words to plot.

Author(s)

James Molyneux

Examples

1
2
3
data("crude")
WordFreqTable(crude, top=10) # Prints the top 10 words used.
WordFreqTable(crude, top=10, format = 'percent') # Prints the top 10% of words used.

mobilizingcs/MobilizePrime documentation built on May 23, 2019, 5:07 a.m.