Description Usage Arguments Details Value References See Also Examples
View source: R/wrapper_functions_lex.div.R
This is just a convenient wrapper function for lex.div
.
1 |
txt |
An object of class |
window |
An integer value for MATTR, defining how many tokens the moving window should include. |
char |
Logical, defining whether data for plotting characteristic curves should be calculated. |
... |
Further valid options for the main function,
see |
This function calculates the moving-average type-token ratio (MATTR). In contrast to
lex.div
,
which by default calculates all possible measures and
their progressing characteristics, this function will only calculate the MATTR value.
An object of class kRp.TTR
.
Covington, M.A. & McFall, J.D. (2010). Cutting the Gordian Knot: The Moving-Average Type-Token Ratio (MATTR). Journal of Quantitative Linguistics, 17(2), 94–100.
kRp.POS.tags
,
kRp.text
,
kRp.TTR
1 2 3 4 | ## Not run:
MATTR(tagged.text)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.