标签: r data.table
我正在使用
DT <- DT[ , c("x_next6_h", "x_last6_h", "x_h") := lapply(.SD, function(x) x/100), .SDcols = c("x_next6", "x_last6", "x") ]
但我认为这会复制DT的所有内容。
有没有办法以较少的开销进行这种转换?