You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cut a numeric array into intervals and return an ordered `CategoricalArray` indicating
56
57
the interval into which each entry falls. Intervals are of the form `[lower, upper)`,
@@ -63,15 +64,17 @@ also accept them.
63
64
* `extend::Bool=false`: when `false`, an error is raised if some values in `x` fall
64
65
outside of the breaks; when `true`, breaks are automatically added to include all
65
66
values in `x`, and the upper bound is included in the last interval.
66
-
* `labels::Union{AbstractVector,Function}=_default_formatter_`: a vector of strings giving the names to use for the
67
-
intervals; or a function `f(from,to,i;extend=false)` that generates the labels from the left and right interval boundaries and the group index. Defaults to `string("[", from, ", ", to, extend ? "]" : ")")`, e.g. `"[1, 5)"`.
67
+
* `labels::Union{AbstractVector,Function}: a vector of strings giving the names to use for
68
+
the intervals; or a function `f(from, to, i; extend)` that generates the labels from the
69
+
left and right interval boundaries and the group index. Defaults to
70
+
`string("[", from, ", ", to, extend ? "]" : ")")`, e.g. `"[1, 5)"`.
68
71
* `allow_missing::Bool=true`: when `true`, values outside of breaks result in missing values.
0 commit comments