herdan.fnc {languageR}R Documentation

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)

[Package languageR version 1.5.0 Index]