Description Usage Arguments Value Examples
Entropy
1 | entropy(x, margin = 2L)
|
x |
a numeric vector, matrix, or data.frame. |
margin |
In case of matrix or dataframe apply entropy by columns margin = 2L or by rows margin = 1L. Default 2. |
the sample entropy of the input.
1 2 3 4 5 | col1 <- c('False', 'False', 'True', 'True', 'True', 'True', 'False', 'True', 'False', 'False')
col2 <- c('True', 'False', 'False', 'False', 'True', 'True', 'False', 'False', 'False', 'False')
col3 <- c('a', 'b', 'c', 'a', 'a', 'a', 'l', 'a', 'l', 'a')
df <- data.frame("V1" = col1, "V2" = col2, "V3" = col3)
entropy(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.