powered by
This function creates a frequency spectrum for a text in character vector form.
spectrum.fnc(text)
A data frame with as column variables
Word frequencies.
The frequencies of the word frequencies.
A character vector containing the words of a text.
R. H. Baayen
R. H. Baayen (2001) Word Frequency Distributions, Dordrecht: Kluwer.
See Also the zipfR package.
zipfR
if (FALSE) { data(alice) alice.spectrum = spectrum.fnc(alice) head(alice.spectrum) tail(alice.spectrum) }
Run the code above in your browser using DataLab