Re: [R] Boundaries of consecutive integers

2013-05-26 Thread Steve Taylor
ject: [R] Boundaries of consecutive integers Hi folks, I'm trying to accomplish something that seems like it should be straightforward, but I've gotten tied in knots trying to figure it out. A toy example of my issue is below. I've played with diff and can't seem to figure ou

Re: [R] Boundaries of consecutive integers

2013-05-13 Thread arun
1   5 #2  22  29 #3  33  40 A.K. - Original Message - From: arun To: Lizzy Wilbanks Cc: R help Sent: Tuesday, May 14, 2013 12:11 AM Subject: Re: [R] Boundaries of consecutive integers May be:   matrix(c(test[c(TRUE,diff(test)>1)],test[c(which(diff(test)>1),length(tes

Re: [R] Boundaries of consecutive integers

2013-05-13 Thread arun
ct: [R] Boundaries of consecutive integers Hi folks, I'm trying to accomplish something that seems like it should be straightforward, but I've gotten tied in knots trying to figure it out.  A toy example of my issue is below.  I've played with diff and can't seem to figure out

[R] Boundaries of consecutive integers

2013-05-13 Thread Lizzy Wilbanks
Hi folks, I'm trying to accomplish something that seems like it should be straightforward, but I've gotten tied in knots trying to figure it out. A toy example of my issue is below. I've played with diff and can't seem to figure out a systematic solution that will give me the two column output i