Description Usage Arguments Value Examples
View the top n min-max scaled tf-idf weighted terms in a text.
1 2 3 4 5 6 7 8 9 10 |
text.var |
A vector of character strings. |
n |
The number of rows to print. If integer selects the frequency at the nth row and prints all rows >= that value. If proportional (less than 0) the frequency value for the nth% row is selected and prints all rows >= that value. |
stopwords |
A vector of stopwords to exclude. |
stem |
logical. If |
language |
The stem language to use (see |
strip |
logical. If |
strip.regex |
A regular expression used for stripping undesired characters. |
... |
|
Returns a data.frame
of terms and min-max scaled tf-idf weights.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
x <- presidential_debates_2012[["dialogue"]]
frequent_terms(x)
important_terms(x)
important_terms(x, n=899)
important_terms(x, n=.1)
important_terms(x, min.char = 7)
important_terms(x, min.char = 6, stem=TRUE)
plot(important_terms(x))
plot(important_terms(x, n = .02))
plot(important_terms(x, n = 40))
plot(important_terms(x, n = 100), as.cloud = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.