Skip to content

Commit

Permalink
Update src/extras.jl
Browse files Browse the repository at this point in the history
Co-Authored-By: Milan Bouchet-Valat <nalimilan@club.fr>
  • Loading branch information
greimel and nalimilan authored Sep 18, 2019
1 parent d59a588 commit 16767c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Cut a numeric array into `ngroups` quantiles, determined using
[`quantile`](@ref).
"""
cut(x::AbstractArray, ngroups::Integer;
labels=_default_formatter_) =
labels::Union{AbstractVector{<:AbstractString},Function}=_default_formatter_) =
cut(x, Statistics.quantile(x, (1:ngroups-1)/ngroups); extend=true, labels=labels)


Expand Down

0 comments on commit 16767c8

Please sign in to comment.