We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Moved from tidyverse/dplyr#919, by kykuo
library(dplyr) library(dtplyr) iris %>% group_by(Species) %>% mutate(x = cumsum(Sepal.Length)) %>% groups data.table::data.table(iris) %>% group_by(Species) %>% mutate(x = cumsum(Sepal.Length)) %>% groups
The text was updated successfully, but these errors were encountered:
Seems like mutate reduces the group by 1 everytime its called
library(dplyr) library(dtplyr) iris %>% group_by(Species,Petal.Width,Sepal.Length) %>% mutate(x = cumsum(Sepal.Length)) %>% groups
Results in :
[[1]] Species
[[2]] Petal.Width
From a bit of testing it appears that it removes the last grouped element each time mutate is called.
Sorry, something went wrong.
addd7ff
Successfully merging a pull request may close this issue.
Moved from tidyverse/dplyr#919, by kykuo
The text was updated successfully, but these errors were encountered: