Compute term-frequency, inverse-document-frequency.

compute_tfidf_at(data = NULL, token = NULL, doc = NULL)

compute_tfidf(..., token, doc)

Arguments

data

data.frame.

token

bare for NSE; character for SE. Name of column in data to use as term in tidytext::bind_tf_idf().

doc

bare for NSE; character for SE. Name of column in data to use as document in tidytext::bind_tf_idf().

...

dots. Parameters to pass directly to visualize_time().

Value

data.frame.

Details

Calls tidytext::bind_tf_idf() internally. Note that the output 'tfidf' column is named tf_idf because this is the convention of the tidytext package.