Description Usage Arguments Value Examples
Converts a continuous variable into a factor with levels based on quantiles of the continuous variable
1 | discretize(x, probs = c(0.25, 0.5, 0.75, 1))
|
x |
numeric vector to convert |
probs |
numeric vector of quantiles that determine factor levels |
factor with levels base on quantiles
1 | discretize(rnorm(20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.