Description Usage Arguments Value
Creates an ordered factor from a numeric vector input with "nice" endpoints.
1 | pretty_cut(x, buckets = 20, inf.left = T, inf.right = T)
|
x |
a numeric vector which is to be converted to a factor by cutting |
buckets |
approximate number of intervals into which x is to be cut |
inf.left |
logical indicating if the leftmost interval should expand to include -Inf |
inf.right |
logical indicating if the rightmost interval should expand to include Inf |
A factor
is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.