View source: R/QC_info_theory.R
zero_entropy_variables | R Documentation |
Calculates Shannon entropy of variables in a data frame in bits (default) or natural units. Missing values are omitted from the calculation. Names of variables with zero entropy are returned.
zero_entropy_variables(data, unit = "bits")
data |
Data Frame to compute on |
unit |
Unit to measure entropy. Either "bits" (default) or "nats". |
Character vector of variable names with zero entropy
Shannon, C. E. A mathematical theory of communication. The Bell System Technical Journal 27, 379–423 (1948).
data(example_data)
zero_entropy_variables(example_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.