Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

spectrum.fnc

Frequency spectrum from text vector


Description

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

Usage

spectrum.fnc(text)

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

## Not run: 
data(alice)
alice.spectrum = spectrum.fnc(alice)
head(alice.spectrum)
tail(alice.spectrum)

## End(Not run)

languageR

Analyzing Linguistic Data: A Practical Introduction to Statistics

v1.5.0
GPL (>= 2)
Authors
R. H. Baayen <harald.baayen@uni-tuebingen.de>, Elnaz Shafaei-Bajestan <elnaz.shafaei-bajestan@uni-tuebingen.de>
Initial release
2019-01-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.