After checking the new data.table 1.9.2 function, I don’t quite understand the new NA / NaN / Inf manipulation function.
News:
NA, NaN, + Inf and -Inf are now considered different values, can be in keys, can be combined and can be grouped. data.table defines: NA <NaN <-Inf
I don’t know what it means, “can be combined and can be grouped”
DT <- data.table(A=c(NA,NA,1:3), B=c("a",NA,letters[1:3]))
Now we have NA in both columns A and B,
But I lost a little how to act, and what is the purpose of this new function. Could you give an example to illustrate this?
Thanks a lot!
source share