We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Feature Request. Related to #857.
We have 2 dts:
library(data.table) dict <- data.table(symbol = c("a","b","c"), ratio = c(5,10,15), key = "symbol") dt <- data.table(symbol = c("a","b","c","d"), value = rnorm(4))
Which we want join:
dict[dt][,list(symbol, new_value = ratio * value)]
Consider the case when we expect to have match on all data in the join. In case of nomatch we want to raise error. Currently it is possible using:
new_dt <- dict[dt] if(any(is.na(new_dt$ratio))) stop("missing data in the reference dictionary")
Which makes us unable to make chaining in such case. If we could use something like this:
dict[dt,nomatch=quote(stop("missing data in the reference dictionary")) ][,list(symbol, new_value = ratio * value)]
just to stop process and raise the error in case of any nomatch.
The text was updated successfully, but these errors were encountered:
Or nomatch = "error" like #655. I'd say this should be added to #857, and closed, as this is very related to #857.
nomatch = "error"
Sorry, something went wrong.
merged with #857.
mult="none"
[.data.table
No branches or pull requests
Feature Request.
Related to #857.
We have 2 dts:
Which we want join:
Consider the case when we expect to have match on all data in the join.
In case of nomatch we want to raise error.
Currently it is possible using:
Which makes us unable to make chaining in such case.
If we could use something like this:
just to stop process and raise the error in case of any nomatch.
The text was updated successfully, but these errors were encountered: