-
Notifications
You must be signed in to change notification settings - Fork 1k
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
x[, .(shift(b)), keyby = a]
returns list type (should be int)
#5939
Comments
This should be included in coming patch release |
we should absolutely fix this, but it's not going to get us removed from CRAN, so if no one has time for a fix right now, it could be part of 1.15.4 patch release instead |
I encounter this problem too with the following example:
previous producing
but now producing
|
Can you check if #5950 solves your use case? |
Just tried still not working in my case |
Originally posted by @ben-schwen in #5950 (comment) This becomes clearer when using @renkun-ken example without the assignment by |
Upgrading to the latest CRAN version of data.table, expression like
x[, .(shift(b)), keyby = a]
will return a list type forV1
column, which is unexpected and inconsistent. In previous versions, it always returns<int>
.Created on 2024-02-18 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: