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

Improve error message when using missing column in .SDcols #3116

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

Improve error message when using missing column in .SDcols #3116

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

Comments

@MichaelChirico
Copy link
Member

Discovered when updating the source table in an ETL and using data.table downstream; source column names changed and gave me an error that's hard to deal with quickly:

DT = data.table(a = 1:5)
DT[ , .SD, .SDcols = 'b']

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

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