I would like to create a vector that is a sequence from 2 vectors. Could
anyone provide suggestion on this?

For example

> a<-c(1,2,3)
> b<-a+2
> b
[1] 3 4 5

I would like to have a vector that is a sequence which starting from a
and ending at b

c = c(1:3,2:4,3:5)
c = c(1,2,3,2,3,4,3,4,5)

Thank you

Best Regards,

Suphajak Ngamlak
Equity and Derivatives Trading
Phatra Securities Public Company Limited
Tel: +662-305-9179   
Email: supha...@phatrasecurities.com



        [[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://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to