textstat_entropy: Compute entropies of documents or features

Description Usage Arguments Value Examples

View source: R/textstat_entropy.R

Description

Compute entropies of documents or features

Usage

1
textstat_entropy(x, margin = c("documents", "features"), base = 2)

Arguments

x

a dfm

margin

character indicating for which margin to compute entropy

base

base for logarithm function

Value

a data.frame of entropies for the given document or feature

Examples

1
2

koheiw/quanteda.core documentation built on Sept. 21, 2020, 3:44 p.m.