hi all,
how can I create sequences that start from a known vector, say x1 and end
with another say x2- also suppose all the sequences will be the same length.
I don't want to use a for loop
x1<-c(1,2,3,4); x2<-(3,4,5,6);
what I want is 
1 2 3 4 
2 3 4 5
3 4 5 6

Thanks

-----
Yasir H. Kaheil
Columbia University
-- 
View this message in context: 
http://www.nabble.com/create-sequences-from-two-%22from%22-and-%22to%22-vectors-tp21380194p21380194.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.

Reply via email to