| freq | R Documentation |
This function returns the frequency of words.
freq(x, ..., sort = FALSE)
x |
A character vector of words. |
... |
Must be empty. This enforces that optional arguments such as
|
sort |
Whether to sort the result by descending frequency. The default
|
A data frame with char and freq columns.
freq(c("b", "a", "b", "c", "a"))
freq(c("b", "a", "b", "c", "a"), sort = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.