You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there are a couple of issues on similar fronts addressing that we should be more consistent about how/when . is understood in data.table and more specifically within [.data.table calls. Here's a new one I came across today:
This returns an error since evaluation looks for the . function (i.e., the call has not replaced . with list) (replacing . with list, this evaluates as expected):
Error in .(b2mod5 = b2%%5) : could not find function "."
Contrast this to something similar in j:
DT = data.table(a = 1:10, b = 10:1)
DT[ , {
b2 = b^2
.(b2mod5 = sum(b2 %% 5))
}, by = a %% 3]
# a b2mod5
# 1: 1 6
# 2: 2 6
# 3: 0 8
Some related issues: #2391, #1912, #852, a few others I can't find just now
The text was updated successfully, but these errors were encountered:
I think there are a couple of issues on similar fronts addressing that we should be more consistent about how/when
.
is understood indata.table
and more specifically within[.data.table
calls. Here's a new one I came across today:This returns an error since evaluation looks for the
.
function (i.e., the call has not replaced.
withlist
) (replacing.
withlist
, this evaluates as expected):Contrast this to something similar in
j
:Some related issues: #2391, #1912, #852, a few others I can't find just now
The text was updated successfully, but these errors were encountered: