spectrum.fnc: Frequency spectrum from text vector

Description Usage Arguments Value Author(s) References See Also Examples

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)

languageR documentation built on May 2, 2019, 10:02 a.m.