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

Auto-naming in j inconsistent (multi-statement j) #2478

Closed
MichaelChirico opened this issue Nov 13, 2017 · 0 comments · Fixed by #3802
Closed

Auto-naming in j inconsistent (multi-statement j) #2478

MichaelChirico opened this issue Nov 13, 2017 · 0 comments · Fixed by #3802
Labels
breaking-change issues whose solution would require breaking existing behavior
Milestone

Comments

@MichaelChirico
Copy link
Member

I find it odd that the following don't give the same output:

DT = data.table(a = 1:3, b = 4:6)

DT[ , .(a, b = b + 1)]
#    a b
# 1: 1 5
# 2: 2 6
# 3: 3 7


DT[ , {
  b = b
  .(a, b = b + 1)
}]
#    V1 b <- Why is a auto-inferred above, but not here?
# 1:  1 5
# 2:  2 6
# 3:  3 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change issues whose solution would require breaking existing behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants