[R] In reply to Joshua Wiley: "Re: For loop"

2010-11-01 Thread Astabenefica
Thank you very much Joshua, your solution is really very good. Thanks again Lorenzo [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] For loop

2010-10-31 Thread Astabenefica
Thanks for the suggestions. I add some more detail to clarify: h=matrix(nrow=1,ncol=22) In my data h is: (0.25 0.25 0 0 0 0 -0.25 -0.25 -0.25 -0.25 -0.5 -0.5 0 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25 0.25) xx<-seq(0,1,0.5) v=matrix(nrow=20001,ncol=22) vv=matrix(nrow