Learn R Programming

quanteda (version 2.1.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

segment_size

the size of the segment