[R] matrix of all difference between rows values

cleberchaves cleberchaves at gmail.com
Sat Nov 10 20:25:37 CET 2012


Thank you very much, arun kirshna!

That's it! I only modified the "res1<-apply(toeplitz(dat1[,2]),1,function(x)
10-x)" for "res1<-apply(toeplitz(dat1[,2]),1,function(x) dat1[1,2]-x)" and
worked very well!

Thanks again!



--
View this message in context: http://r.789695.n4.nabble.com/matrix-of-all-difference-between-rows-values-tp4649191p4649196.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list