Learn R Programming

languageR (version 1.5.0)

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.

See Also

See the documentation for zipfR for spc objects.

Examples

Run this code
# NOT RUN {
  library(zipfR)
  data(alice)
  alice.spc = text2spc.fnc(alice)
  plot(alice.spc)
# }

Run the code above in your browser using DataLab