Learn R Programming

quanteda.textstats (version 0.97.2)

compute_msttr: Compute the Mean Segmental Type-Token Ratio (MSTTR)

Description

Compute the Mean Segmental Type-Token Ratio (Johnson 1944) for a tokens input.

Usage

compute_msttr(x, MSTTR_segment)

Arguments

x

input tokens

MSTTR_segment

a numeric value defining the size of the each segment for the computation of the the Mean Segmental Type-Token Ratio (Johnson, 1944)