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
x.
i.
In 1.9.3, there should be ways to access x's key columns in j directly (and i's key columns as well) using the shortcut prefix x. and i..
x
j
i
dta <- data.table(idx=1:3, vala=4:6, key="idx") dtb <- data.table(idx=c(1,4), valb=c(10,11), key="idx") # (1) dta[dtb, list(idx, sum(valb)), by=.EACHI] # idx idx V2 #1: 1 1 10 #2: 4 NA 11 # (2) dta[dtb, list(x.idx, sum(valb)), by=.EACHI] # Error in `[.data.table`(dta, dtb, list(x.idx, sum(valb)), by = .EACHI) : # object 'x.idx' not found
(2) should return:
# x.idx V2 # 1 10 # NA 11
PS: Note that there's already a related issue #471 on (1) regarding names of data.table join in 1.9.3.
data.table
The text was updated successfully, but these errors were encountered:
This was resolved by @arunsrinivasan in 620276b
Sorry, something went wrong.
not yet works with .EACHI
.EACHI
unit tests for x., i. prefixes on join by EACHI, closes #732
437b973
unit tests for x., i. prefixes on join by EACHI, closes #732 (#2945)
2d3fdeb
Successfully merging a pull request may close this issue.
In 1.9.3, there should be ways to access
x
's key columns inj
directly (andi
's key columns as well) using the shortcut prefixx.
andi.
.(2) should return:
PS: Note that there's already a related issue #471 on (1) regarding names of
data.table
join in 1.9.3.The text was updated successfully, but these errors were encountered: