Re: [R] FOR LOOP w/IFELSE statement help

2008-03-05 Thread Ted Harding
On 05-Mar-08 23:37:42, zack holden wrote: > Dear list, > I'm trying to query a string of numbers to identify where in the string > the numbers stop increasing (where x[i] == x[i+1]). In example 1 below, > I've adapted code from Jim Holt to do this. However, I run into > situations where the conditi

[R] FOR LOOP w/IFELSE statement help

2008-03-05 Thread zack holden
Dear list, I'm trying to query a string of numbers to identify where in the string the numbers stop increasing (where x[i] == x[i+1]). In example 1 below, I've adapted code from Jim Holt to do this. However, I run into situations where the condition is not met, as in example 2, where the number