powered by
Compute entropy 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
# NOT RUN { textstat_entropy(data_dfm_lbgexample) textstat_entropy(data_dfm_lbgexample, "features") # }
Run the code above in your browser using DataLab