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
If auto.index is TRUE, the RHS of := is evaluated even if there are zero rows in the subset.
packageVersion('data.table')
#[1] ‘1.9.5’
options(datatable.auto.index=TRUE)
DT<- data.table(a=1:2)
DT[a==3, b:=d+1]
# Error in eval(expr, envir, enclos) : object 'd' not found
Since DT[a==3] above returns a zero row data.table, there is nothing to assign in the j expression, so it should not be evaluated. This did not throw an exception in 1.9.3 and does not throw an exception if auto.index is turned off.
…Col==3] where DT is one row and someCol is NA, returns no rows for consistency with nrow>1 cases. +with=FALSE with := now warns. +nomatch with := now warns. +logical i no longer recycles unless length 1 or nrow. #1001#1002#759#354#166 and closes#1252.
If auto.index is TRUE, the RHS of
:=
is evaluated even if there are zero rows in the subset.Since
DT[a==3]
above returns a zero rowdata.table
, there is nothing to assign in thej
expression, so it should not be evaluated. This did not throw an exception in 1.9.3 and does not throw an exception if auto.index is turned off.The text was updated successfully, but these errors were encountered: