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

herdan.fnc

Herdan's C


Description

This function calculates Herdan's constant C.

Usage

herdan.fnc(text, chunks)

Arguments

text

A vector of strings representing a text.

chunks

A vector of chunk sizes for which Herdan's C is required. Duplicate chunk sizes are not allowed, and the number of chunks should be at least 2.

Value

A list with components

growth

A data frame with token and type counts for the requested chunk sizes.

C

Herdan's C.

Author(s)

R. H. Baayen

References

Herdan, G. (1960) Type-Token Mathematics, The Hague: Mouton.

Herdan, G. (1964) Quantitative Linguistics, London: Buttersworths.

See Also

See Also growth.fnc.

Examples

## Not run: 
  data(alice)
  herdan.fnc(alice, cumsum(rep(floor(length(alice)/40), 40)))

## 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.