term.time.statistics: Compute corpus statistics for term use over time

Description Usage Arguments Value

Description

Compute corpus statistics for term use over time. Calculates the spearman's rank order correlation of a term's use over time with a vector that gradually increases over time.

Usage

1
term.time.statistics(dtm, document_date, time_interval = "day")

Arguments

dtm

a document term matrix (e.g. the output of dtm.create)

document_date

a vector with dates that matches the rows in dtm

time_interval

a character string indicating what time interval to use

Value

A data frame with rows corresponding to the terms in dtm and the statistics in the columns


kasperwelbers/corpus-tools documentation built on May 20, 2019, 7:37 a.m.