View source: R/textstat_lexdiv.R
compute_mattr | R Documentation |
From a tokens object, computes the Moving-Average Type-Token Ratio (MATTR)
from Covington & McFall (2010), averaging all of the sequential moving
windows of tokens of size MATTR_window
across the text, returning the
average as the MATTR.
compute_mattr(x, MATTR_window = 100L)
x |
a tokens object |
MATTR_window |
integer; the size of the moving window for computation of TTR, between 1 and the number of tokens of the document |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.