compute_tfidf: Compute TF-IDF

Description Usage Arguments Details Value

Description

Compute term-frequency, inverse-document-frequency.

Usage

1
2
3
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().

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.

Value

data.frame.


tonyelhabr/tetext documentation built on May 14, 2019, 8:03 a.m.