herdan.fnc: Herdan's C

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function calculates Herdan's constant C.

Usage

1
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

1
2
3
4
5
## Not run: 
  data(alice)
  herdan.fnc(alice, cumsum(rep(floor(length(alice)/40), 40)))

## End(Not run)

languageR documentation built on May 2, 2019, 10:02 a.m.