Learn R Programming

languageR (version 1.0)

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
  • growthA data frame with token and type counts for the requested chunk sizes.
  • CHerdan's C.

References

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

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

See Also

See Also growth.fnc.

Examples

Run this code
data(alice)
  herdan.fnc(alice, cumsum(rep(floor(length(alice)/40), 40)))

Run the code above in your browser using DataLab