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
Use group_indices() in mutate() with nse #2160
Comments
That seems reasonable to me. |
In particular: Should the following work: mtcars %>% mutate(group = group_indices(cyl)) |
I don't think so. We could develop a function that did work like that, but it would need to be a new function since it wouldn't be backward compatible. |
Yeah, we already have row_number(x) vs. row_number() (#2218). |
Hi, I am still running into problems with that issue, Rstudio freezes (and restarts with a new session) and within vim (and vim-r-plugin) R crashes with
Session details:
Any help is appreciated. |
Can we get
group_indices
to work inmutate
using non-standard evaluation?Often we want to add the output of
group_indices
back to the dataframe for further manipulation. It is possible with se, but it's a lot of typing and could be more novice-friendly.This would be good if it would work:
Instead we have to do this, using the se version:
The text was updated successfully, but these errors were encountered: