I am using inbuilt data set "mtcars" in R. I have converted it into data.table format. I have another data.table, m1, of NA values. dimension of m1 is same as dimension of mtcars, say, the dimension is 32X11. My objective is to save some rows of mtcars in m1
(i.e., m1[c(1,11,13),]<-mtcars[c(1,11,13),]
)
using data.table. But whenever i am trying to do that, it is giving TRUE/FALSE values for 1,11,13 rows of m1. How do I save 1,11,13 rows of mtcars in m1? (Note: I want to use data.table format only). Any help will be appreciated. Thanks in advance!!