Learn R Programming

languageR (version 1.5.0)

growth2vgc.fnc: Conversion of growth object into a vgc object

Description

This function converts a growth object (as defined in the languageR package) to a vgc object (as defined in the zipfR package).

Usage

growth2vgc.fnc(growth)

Arguments

growth

A growth object obtained with growth.fnc().

Value

A vcg object as defined in the zipfR library.

References

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

zipfR Website: <URL: http://purl.org/stefan.evert/zipfR/>

See Also

See also growth.fncand the zipfR package.

Examples

Run this code
# NOT RUN {
library(zipfR)

data(alice)
alice.growth = growth.fnc(text = alice, size = 648, nchunks = 40)
alice.vgc = growth2vgc.fnc(alice.growth)
plot(alice.vgc)
# }

Run the code above in your browser using DataLab