Skip to content
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

! combined with a logical call in j seem to have precedence bug #2917

Closed
DavidArenburg opened this issue May 30, 2018 · 0 comments · Fixed by #3829
Closed

! combined with a logical call in j seem to have precedence bug #2917

DavidArenburg opened this issue May 30, 2018 · 0 comments · Fixed by #3829
Labels
Milestone

Comments

@DavidArenburg
Copy link
Member

DavidArenburg commented May 30, 2018

Reproducible example

library(data.table) #v1.11.2
dt <- data.table(a = 1, b = NA)
dt[, !is.na(dt), with = FALSE]
#    a
# 1: 1

dt <- data.table(a = 1, b = 2)
dt[, !is.na(dt), with = FALSE]
## Null data.table (0 rows and 0 cols)

## Should be
#    a b
# 1: 1 2

Source on SO

I've investigated this and seem to found the bug. I would guess it is a relatively easy fix.

@DavidArenburg DavidArenburg changed the title [bug] ! combined with a logical call in j seem to have precedence bug ! combined with a logical call in j seem to have precedence bug Aug 19, 2018
@mattdowle mattdowle added this to the 1.12.4 milestone Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants