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
library(data.table)
set.seed(1234)
DT <- data.table(a = rnorm(10), b = rnorm(10), c = 10)
##Works as expected
DT[, lapply(.SD, function(x, y) x + y, y = c), .SDcols = c("a", "b")]
##Does not work as expected
DT[, Map(function(x, y) x + y, x = .SD, y = c), .SDcols = c("a", "b")]
The text was updated successfully, but these errors were encountered:
This may be related to issue #495 #495
The text was updated successfully, but these errors were encountered: