Learn R Programming

koRpus (version 0.04-40)

TTR: Lexical diversity: Type-Token Ratio

Description

This is just a convenient wrapper function for lex.div.

Usage

TTR(txt, char = FALSE, ...)

Arguments

txt
An object of either class kRp.tagged-class or kRp.analysis-class, containing the tagged text to be analyzed.
char
Logical, defining whether data for plotting characteristic curves should be calculated.
...
Further valid options for the main function, see lex.div for details.

Value

Details

This function calculates the classic type-token ratio (TTR). In contrast to lex.div, which by default calculates all possible measures and their progressing characteristics, this function will only calculate the TTR value, and characteristics are off by default.

See Also

kRp.POS.tags, kRp.tagged-class, kRp.TTR-class

Examples

Run this code
TTR(tagged.text)

Run the code above in your browser using DataLab