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
DT = data.table(d = as.Date('2019-01-01'), key = 'd')
# fails since d is actually numeric
DT[.('2019-01-01')]
# this works since R coerces type for ==
DT[d == '2019-01-01']
Since we're already used to == implicitly coercing dates-as-strings to dates, I think there's reasonable expectation that join subsets would work similarly.
Logic is: if x's join key inherits from Date & i's join key is character, try as.IDate.
Type laxness presents a weird edge case -- what if x has .Date(0.1), should we round it first?
The text was updated successfully, but these errors were encountered:
Since we're already used to
==
implicitly coercing dates-as-strings to dates, I think there's reasonable expectation that join subsets would work similarly.Logic is: if
x
's join keyinherit
s fromDate
&i
's join key ischaracter
, tryas.IDate
.Type laxness presents a weird edge case -- what if
x
has.Date(0.1)
, should weround
it first?The text was updated successfully, but these errors were encountered: