You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(data.table)
library(dplyr)
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:
richierocks
changed the title
filter_ a with data.table throws 'argument ".dots" is missing, with no default' error
filter_ with a data.table throws 'argument ".dots" is missing, with no default' error
Feb 18, 2015
To reproduce:
The error persists if you replace the formula with a string or call:
...and if you don't use piping:
The interactive version is OK:
The text was updated successfully, but these errors were encountered: