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
{{ message }}
Repository navigation
Warning for set / := when numToDo > nrow(x)? #3557
Activity
jangorecki commentedon May 12, 2019
unless
DT[c(1, NA), a := 2:3]franknarf1 commentedon May 12, 2019
Re @jangorecki 's example, you can use numToDo instead of length(i) then? That count is already recorded with NAs removed as seen in
I guess this would just be adding a warning near the message above
data.table/src/assign.c
Line 344 in 2385354
Related #2022
[-]Warning for set / := when length(i) > nrow(x)?[/-][+]Warning for set / := when numToDo > nrow(x)?[/+]MichaelChirico commentedon May 13, 2019
Thanks Frank/Jan, yes
length(i)is not the condition we should use but it seemsnumToDowould be the corrected adjustment.Main Q is whether we thing this is
warning-worthy behavior? Or perhaps just something to append to/reiterate in theverbosemessage?jangorecki commentedon Nov 30, 2019
@MichaelChirico lets start with verbose message, this at least won't make any breaking changes
jangorecki commentedon May 19, 2020
isn't it duplicate of #2022 ?