is_discrete | R Documentation |
A simple test intended to distinguish between discrete and continuous values for the purpose of choosing analytics visualization selection. The selection of a cutoff value is purely subjective.
is_discrete(x, cutoff = 100)
x |
a vector of numeric values |
cutoff |
maximum number of unique values in x before x is considered not discrete |
logical
is_discrete(1:10) is_discrete(runif(1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.