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