Frequency spectrum from text vector

Share:

Description

This function creates a frequency spectrum for a text in character vector form.

Usage

1

Arguments

text

A character vector containing the words of a text.

Value

A data frame with as column variables

frequency

Word frequencies.

freqOfFreq

The frequencies of the word frequencies.

Author(s)

R. H. Baayen

References

R. H. Baayen (2001) Word Frequency Distributions, Dordrecht: Kluwer.

See Also

See Also the zipfR package.

Examples

1
2
3
4
5
6
7
## Not run: 
data(alice)
alice.spectrum = spectrum.fnc(alice)
head(alice.spectrum)
tail(alice.spectrum)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.