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?
to your account
DT <- data.table(x = rnorm(10))
DT %>% filter_(~ x > 0)
## Error in lazyeval::common_env(.dots) :
## argument ".dots" is missing, with no default
The error persists if you replace the formula with a string or call:
DT %>% filter_("x > 0") # throws same error
DT %>% filter_(quote(x > 0)) # throws same error
...and if you don't use piping:
filter_(DT, ~ x > 0) # throws same error
The interactive version is OK:
DT %>% filter(x > 0) # OK
The text was updated successfully, but these errors were encountered:
I am having the same issue. filter_ wasn't working with data.table, but works as intended for data.frame
Sorry, something went wrong.
Confirmed, same behavior here. Using dplyr 0.4.1 and data.table 1.9.4.
Just had another look at this, and it's an easy fix. In filter_.data.table, change the second line
env <- lazyeval::common_env(.dots)
env <- lazyeval::common_env(dots)
Successfully merging a pull request may close this issue.