[R] R programming question

2015-09-03 Thread Oleg Portnoy
I have two vectors of probability distribution of the same length n for random variable X and Y. I want to built matrix of two-dimension distribution for X and Y with assumption of independence. P(X=i,Y=j)=P(X=i)*P(Y=j) I want to do this very fast for n=120 and big amount of different distribution

[R] memory limit problem

2009-09-10 Thread oleg portnoy
Hi, I have Win XP 32, 4 gig DDR2 and R 2.9.2. I have memory limit problems. > memory.limit(4090) [1] 4090 > memory.limit() [1] 4090 > a<-trans.matrix.f(7) # made big matrix of integer 16384*16384 Error: cannot allocate vector of size 512.0 Mb I not have other objects in R memory. what I do? trans