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
I noticed a strange type of behaviour using the with=FALSE parameter in a data table.
Maybe worth mentioning I am using data table version 1.10.4. on R 3.3.2
Here is a reproducible example;
library(data.table)
test <- data.table(mtcars)
i <- 3L
# Print 3rd column
test[, i, with=FALSE]
# Print 4th column
test[, i + 1L, with=FALSE]
# Print all but 3rd column
test[, i - 1L, with=FALSE]
The text was updated successfully, but these errors were encountered:
Yeah, I guess it parses the expression, sees that - is the top-level function and wings it from there somehow, similar to this bug: #2069 Parentheses stop it: test[, (i - 1L), with=FALSE]
Hi,
I noticed a strange type of behaviour using the
with=FALSE
parameter in a data table.Maybe worth mentioning I am using data table version 1.10.4. on R 3.3.2
Here is a reproducible example;
The text was updated successfully, but these errors were encountered: