[R] R: Memory increase

2012-02-08 Thread oluwole oyebamiji
Hi all,      I want to do a linear regression with lm package in MASS, my data is 59199 rows by 29 column. I got this error message can not allocate a vector of size 1.5Gb. I have read some of the previous related posting on this but I couldnt still got it right. I have an Ubuntu machine of 64bi

[R] Intersection of 2 matrices

2011-12-02 Thread oluwole oyebamiji
Hi all,     I have matrix A of 67420 by 2 and another matrix B of 59199 by 2. I would like to find the number of rows of matrix B that I can find in matrix A (rows that are common to both matrices with or without sorting). I have tried the "intersection" and "is.element" functions in R but it on