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

text2spc.fnc

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)

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.