View source: R/calc_modality.r
calc_modality | R Documentation |
The number of modes a dataset has. It can be used to identify whether a dataset is unimodal, bimodal, or multimodal.
calc_modality(x)
x |
A vector |
A single value.
table(mtcars$cyl)
calc_mode(mtcars$cyl)
calc_modality(mtcars$cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.