-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: step_cut
does not match results from dplyr::mutate(var = cut(var,n))
when n
is an integer
#1398
Comments
Hello @jkylearmstrong 👋 Thanks for your issue! Have you seen the It contains the argument |
Hey @EmilHvitfeldt, thanks for your response. Yes, I looked at To my understanding,
When you supply For most of the |
The way I see it, is that we don't want to match functionality of if we were to add this functionality, I think it would fit better in
we could make We should also update the documentation to reflect how |
Thanks for considering. My story was I was looking to apply some cuts I had made in my exploration to a variable "Low", "Medium", and "High" and then use tidymodels framework for repeated analysis, I looked at the index of functions and found the corresponding
might be helpful, as it does something slightly different from this. However, when looking at the examples it becomes more clear as to how it's being applied. Thanks for this package, overall I find it very helpful. :) |
feature-request
It took me a minute to realize the behavior of
step_cut
is different than that ofcut
.The functionality of
step_cut
expects explicit breaks whereascut
will generate intervals when a single integer value is provided inbreaks
.Perhaps an option for
n_breaks
to thestep_cut
option, could also exist for vectors or named lists and just apply the vector, named list to the list of variablesThe text was updated successfully, but these errors were encountered: