View source: R/textstat_entropy.R
textstat_entropy | R Documentation |
Compute entropies of documents or features
textstat_entropy(x, margin = c("documents", "features"), base = 2)
x |
a |
margin |
character indicating for which margin to compute entropy |
base |
base for logarithm function |
a data.frame of entropies for the given document or feature
library("quanteda")
textstat_entropy(data_dfm_lbgexample)
textstat_entropy(data_dfm_lbgexample, "features")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.