powered by
This function calculates Zipf's rank-frequency distribution for a text vector, and optionally produces the rank-frequency plot.
zipf.fnc(text, plot = FALSE)
A character vector containing a text.
Logical, if TRUE, a rank-frequency plot is shown on the graphics device.
A data frame with variables
Word Frequencies, ordered from large to small.
Frequencies of word frequencies.
Zipf rank.
Zipf, G. K. (1935) The Psycho-Biology of Language, Boston: Houghton Mifflin.
Zipf, G. K. (1949) Human Behavior and the Principle of the Least Effort. An Introduction to Human Ecology, New York: Hafner.
Baayen, R. H. (2001) Word Frequency Distributions, Dordrecht: Kluwer.
See also growth.fnc.
growth.fnc
# NOT RUN { data(alice) alice.zipf = zipf.fnc(alice, plot = TRUE) head(alice.zipf) # }
Run the code above in your browser using DataLab