"Wolski" <[EMAIL PROTECTED]> writes:

> list3[[x]] <- myfunc(list1[[x]],list2[[x]])
> 
> Until now I am runnign this in a for(x in 1:length(list1)) loop. But "for" loops are 
> slow especially if list3 is HUGE.
> 
> What can I do?

Use mapply(). I wouldn't expect the for loop to be all that slow
unless you have forgotten to allocate memory for the result list up
front, though.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to