entropy | R Documentation |
Computes the entropy of a categorical variable, with optional normalisation.
entropy(x, normalise = TRUE)
x |
A character vector representing observed categorical values. |
normalise |
Logical. If |
A numeric value representing the entropy of x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.