herdan.fnc | R Documentation |
This function calculates Herdan's constant C
.
herdan.fnc(text, chunks)
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. |
A list with components
growth |
A data frame with token and type counts for the requested chunk sizes. |
C |
Herdan's C. |
R. H. Baayen
Herdan, G. (1960) Type-Token Mathematics, The Hague: Mouton.
Herdan, G. (1964) Quantitative Linguistics, London: Buttersworths.
See Also growth.fnc
.
## Not run:
data(alice)
herdan.fnc(alice, cumsum(rep(floor(length(alice)/40), 40)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.