Thanks a lot. It is exactly what I was looking for. I found though and another way (worse) to do it, so I just post in case someone find it useful
sk<-nz*e*(vnk[c(i:0)]%*%vro[c(0:i)]) for(i in 0:200){ sk[i]<-nz*e*(vnk[c(i:0)]%*%vro[c(0:i)]) } -- View this message in context: http://n4.nabble.com/Create-vectors-from-a-vector-tp1592334p1592793.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.