powered by
Compute entropies of documents or features
textstat_entropy(x, margin = c("documents", "features"), base = 2)
a dfm
dfm
character indicating for which margin to compute entropy
base for logarithm function
a data.frame of entropies for the given document or feature
# NOT RUN { textstat_entropy(data_dfm_lbgexample) textstat_entropy(data_dfm_lbgexample, "features") # }
Run the code above in your browser using DataLab