Re: [R] sequence with start and stop positions

2008-08-26 Thread Ray Brownrigg
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Oldmeadow Sent: Tuesday, August 26, 2008 12:42 AM To: r-help@r-project.org Subject: [R] sequence with start and stop positions Hi, I have a vector of start positions, and another vector of stop positions, eg start&

Re: [R] sequence with start and stop positions

2008-08-26 Thread Charles C. Berry
On Tue, 26 Aug 2008, Chris Oldmeadow wrote: Hi, I have a vector of start positions, and another vector of stop positions, eg start<-c(1,20,50) stop<-c(7,25,53) Is there a quick way to create a sequence from these vectors? new<-c(1,2,3,4,5,6,7,20,21,22,23,24,25,50,51,52,53) Vectorize t

Re: [R] sequence with start and stop positions

2008-08-26 Thread Christos Hatzis
> To: r-help@r-project.org > Subject: [R] sequence with start and stop positions > > Hi, > > I have a vector of start positions, and another vector of > stop positions, > > eg start<-c(1,20,50) > stop<-c(7,25,53) > > Is there a quick

Re: [R] sequence with start and stop positions

2008-08-25 Thread Bill.Venables
ww.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Oldmeadow Sent: Tuesday, 26 August 2008 2:42 PM To: r-help@r-project.org Subject: [R] sequence with start and stop positions Hi, I have a vector of start positions, and another vecto

[R] sequence with start and stop positions

2008-08-25 Thread Chris Oldmeadow
Hi, I have a vector of start positions, and another vector of stop positions, eg start<-c(1,20,50) stop<-c(7,25,53) Is there a quick way to create a sequence from these vectors? new<-c(1,2,3,4,5,6,7,20,21,22,23,24,25,50,51,52,53) the way Im doing it at the moment is pos<-seq(start[1],sto