Description Usage Arguments Details Value See Also
Convert continuous to interval data
1 | discretize(x, boundaries = seq(-3, 3, length.out = 4))
|
x |
the continuous data |
boundaries |
boundaries defining how continuous variable is mapped to scale levels |
Splits up a continuous scale into a discrete scale. The
scale will have a number of levels equal to one more than the
number of elements in boundaries
. The default behavior is
to create an interval scale with upper and lower boundaries at -3
and 3 respectively. This function is a fairly simple wrapper for
cut
.
vector with discrete ratings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.