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

Inconsistent .SDcols behavior NA vs. NA_character #3118

Closed
MichaelChirico opened this issue Oct 18, 2018 · 0 comments
Closed

Inconsistent .SDcols behavior NA vs. NA_character #3118

MichaelChirico opened this issue Oct 18, 2018 · 0 comments
Milestone

Comments

@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Oct 18, 2018

Uncovered in work on #3116

DT = data.table(a = 1:5)
DT[ , .SD, .SDcols = NA]
# Null data.table (0 rows and 0 cols)
DT[ , .SD, .SDcols = NA_character_]

Error in [.data.table(DT, , .SD, .SDcols = NA_character_) :
Some items of .SDcols are not column names (or are NA)

I guess should error in both cases...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants