I have the following for loop
for( i in 1:No_Simulations) {
Vec = rowSums( sweep(Matrix1,MARGIN=2,Matrix2[i,],`*`) )
if( i == 1 ) { Result <- Vec } else { Result = cbind( Result , Vec ) } }
in which No_Simulations = 10000 and dim of Matrix2 is 10000 100 and dim of Matrix1 is also 10000 100.
I am not able to run this part of the code as R compiler gives me the following error : " impossible d'allouer un vecteur de taille 366.6 Mo "
i.e. unable to allocate a vector of size 366.6 MB. I have also tried using the memory.limit() to increase the memory size but it still doesn't work. Could someone please help me.