term_counts: Count unique terms in a text source

Description Usage Arguments Value

View source: R/term-analysis.R

Description

term_counts counts the occurences and computes shares of unique terms in a text source. Expects the result of terms_by_date or its variations as input.

Usage

1
term_counts(termsByDate)

Arguments

termsByDate

a dataframe as returned by terms_by_date

Value

a dataframe with three columns listing all unique terms in the provided text source, where n_term is the total number of occurences in the text source and term_share the share relative to all other terms; if no stemming has been applied the term and token in the result are identical


sdaume/topicsplorrr documentation built on Dec. 22, 2021, 11:11 p.m.