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
There is an issue in filter if the dataset object is a data.table and the variable by which the variable is grouped is named "V1".
filter
library(dplyr) library(hflights) library(data.table) DT <- as.data.table(hflights) DT %>% group_by(DayOfWeek) %>% filter(ArrTime==1502) %>% nrow [1] 173 setnames(DT,"DayOfWeek","V1") DT %>% group_by(V1) %>% filter(ArrTime==1502) %>% nrow [1] 3239
It happens because of this line of code:
call <- substitute(data[, .I[expr], by = vars]) indices <- eval(call, env)$V1
The text was updated successfully, but these errors were encountered:
225f01b
hadley
No branches or pull requests
There is an issue in
filter
if the dataset object is a data.table and the variable by which the variable is grouped is named "V1".It happens because of this line of code:
The text was updated successfully, but these errors were encountered: