-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
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
:= should still suppress print if i is logical and all FALSE #887
Comments
looks like a bug. setkey(d,a)
d[.(c("BE", "BD")), sert:="11"] you might try to rewrite your code to binary search as it will also improve the performance |
Thanks. Agreed it's a printing issue (data looks correct) ... will fix. |
In package data.table version 1.9.5 when I check if the variable is within the specified limits, but any value of variable don't exist and print out all data.table.
Example:
Package data.table version 1.9.5:
library(data.table)
d <- data.table(a=c("A2","A4","A2"))
d[, sert:=""]
d[a %in% c("BE", "BD"), sert:="11"]
a sert
1: A2
2: A4
3: A2
str(d)
Classes ‘data.table’ and 'data.frame': 3 obs. of 2 variables:
$ a : chr "A2" "A4" "A2"
$ sert: chr "" "" ""
..- attr(, "__a")= int 1 3 2
The text was updated successfully, but these errors were encountered: