spectrum.fnc {languageR}R Documentation

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)

[Package languageR version 1.5.0 Index]