bow_metrics: Compute basic metrics for a bag of words.

Description Usage Arguments Value

Description

Compute basic metrics for a bag of words.

Usage

1
bow_metrics(x, source = "source", term = "term", count = "count")

Arguments

x

tibble. Bag of words

source

character string. Name of the variable indicating the document id.

term

character string. Name of the variable indicating the term.

count

character string. Name of the variable indicating the frequence.

Value

A tibble 9 variables: source, term, count, src_word_count (number of words in the source), term_count (frequency of the term), term_source_count (number of sources in which the term appears), tf, idf, tf_idf.


NicolasJBM/lexana documentation built on July 3, 2019, 10 a.m.