text2spc.fnc {languageR}R Documentation

Create a frequency spectrum from a text vector

Description

This functions takes a text in the form of a character vector as input, and outputs a frequency spectrum object as defined in the zipfR package.

Usage

text2spc.fnc(text)

Arguments

text

A text in the form of a character vector.

Value

A spc spectrum object as defined in the zipfR package.

Author(s)

R. H. Baayen

See Also

See the documentation for zipfR for spc objects.

Examples

## Not run: 
  library(zipfR)
  data(alice)
  alice.spc = text2spc.fnc(alice)
  plot(alice.spc)

## End(Not run)

[Package languageR version 1.5.0 Index]