text2spc.fnc: Create a frequency spectrum from a text vector

Description Usage Arguments Value Author(s) See Also Examples

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

1

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

1
2
3
4
5
6
7
## Not run: 
  library(zipfR)
  data(alice)
  alice.spc = text2spc.fnc(alice)
  plot(alice.spc)

## End(Not run)

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