Re: [R] Find each time a value changes

2010-02-11 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Tim Clark > Sent: Thursday, February 11, 2010 10:53 AM > To: r-help@r-project.org > Subject: Re: [R] Find each time a value changes > > It was brought

Re: [R] Find each time a value changes

2010-02-11 Thread Tim Clark
Ben Tupper > Subject: Re: [R] Find each time a value changes > To: r-help@r-project.org > Cc: "Tim Clark" > Date: Wednesday, February 10, 2010, 4:16 PM > Hi, > > On Feb 10, 2010, at 8:58 PM, Tim Clark wrote: > > > Dear List, > > > > I am trying t

Re: [R] Find each time a value changes

2010-02-10 Thread Tim Clark
gt; From: Ben Tupper > Subject: Re: [R] Find each time a value changes > To: r-help@r-project.org > Cc: "Tim Clark" > Date: Wednesday, February 10, 2010, 4:16 PM > Hi, > > On Feb 10, 2010, at 8:58 PM, Tim Clark wrote: > > > Dear List, > > > >

Re: [R] Find each time a value changes

2010-02-10 Thread Ben Tupper
Hi, On Feb 10, 2010, at 8:58 PM, Tim Clark wrote: Dear List, I am trying to find each time a value changes in a dataset. The numbers are variables for day vs. night values, so what I am really getting is the daily sunrise and sunset. A simplified example is the following: x<-seq(1:100)

Re: [R] Find each time a value changes

2010-02-10 Thread Bill.Venables
:59 AM To: r-help@r-project.org Subject: [R] Find each time a value changes Dear List, I am trying to find each time a value changes in a dataset. The numbers are variables for day vs. night values, so what I am really getting is the daily sunrise and sunset. A simplified example is

[R] Find each time a value changes

2010-02-10 Thread Tim Clark
Dear List, I am trying to find each time a value changes in a dataset. The numbers are variables for day vs. night values, so what I am really getting is the daily sunrise and sunset. A simplified example is the following: x<-seq(1:100) y1<-rep(1,10) y2<-rep(2,10) y<-c(y1,y2,y1,y1,y1,y2,y