I have this big binary data.table:
> str(mat)
Classes 'data.table' and 'data.frame': 262561 obs. of 10615 variables:
$ 1001682: num 0 0 0 0 0 0 0 0 0 0 ...
$ 1001990: num 0 0 0 0 0 0 0 0 0 0 ...
$ 1002541: num 0 0 0 0 0 0 0 0 0 0 ...
$ 1002790: num 0 0 0 0 0 0 0 0 0 0 ...
$ 1003312: num 0 0 0 0 0 0 0 0 0 0 ...
$ 1004403: num 0 0 0 0 0 0 0 0 0 0 ...
There are somewhere 1 (it's not full of zeros). And I'm trying to convert it to data.matrix
by just writing mat <- data.matrix(mat)
but R session always abort. Is it a problem with my computer? Should I try some high performance computer? Or is there some other way to do this? I need it in data.matrix
.
I'm using macbook pro early 2015 with 2.7 GHz Intel Core i5 and 8Gm DDR3.