frequency_list: Calculate token frequency list

Description Usage Arguments Value Examples

View source: R/corpus_operations.R

Description

frequency_list calculates token (e.g. word or lemma) frequency list for the specified corpus or corpus subset.

Usage

1
frequency_list(cqp_corpus, pattr = "word")

Arguments

pattr

string specifying positional attribute (e.g. word or lemma).

corpus

corpus created with get_corpus or corpus subset created with subset_corpus.

Value

data.table with tokens, absolute, and relative frequencies.

Examples

1
## Not run: frequency_list, pattr = "lemma", sattr = "text_year", sattr_values = c(2015, 2016)

wiertz/rusecqp documentation built on May 22, 2019, 2:26 p.m.