[datatable-help] For loop acceleration

Fox123 vincent.janssens1 at gmail.com
Wed May 25 16:01:21 CEST 2016


Is there an alternative method fot this code which is quicker but will have
the same result? 

red <- rood[,1] 
for (j in 2:(dim(rood)[2])){ 
red <- c(red, rood[,j]) 
} 

rood is 2592x3872 matrix 



--
View this message in context: http://r.789695.n4.nabble.com/For-loop-acceleration-tp4721110.html
Sent from the datatable-help mailing list archive at Nabble.com.


More information about the datatable-help mailing list