> a<-c(1,4) > a [1] 1 4 > b<-a*5 > b [1] 5 20 a is a very long vector , how can i get c(1:5,4:20)? i do not want to use a loop.
thanks very much! ______________________________________________ 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.