spectrum.fnc | R Documentation |
This function creates a frequency spectrum for a text in character vector form.
spectrum.fnc(text)
text |
A character vector containing the words of a text. |
A data frame with as column variables
frequency |
Word frequencies. |
freqOfFreq |
The frequencies of the word frequencies. |
R. H. Baayen
R. H. Baayen (2001) Word Frequency Distributions, Dordrecht: Kluwer.
See Also the zipfR
package.
## Not run:
data(alice)
alice.spectrum = spectrum.fnc(alice)
head(alice.spectrum)
tail(alice.spectrum)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.