Description Usage Arguments Author(s) Examples
Prints the top number or percentage of words from text that has been initialized to work as text in R.
1 | WordFreqTable(text, top = 100, format = 'count')
|
text |
a text object that has been initialized using the |
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. |
James Molyneux
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.