textstat_entropy: Compute entropy of documents or features

Description Usage Arguments Examples

View source: R/textstat_entropy.R

Description

Compute entropy 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

Examples

1
2

quanteda/quanteda documentation built on Feb. 16, 2019, 5:45 a.m.