Re: [R] Boundaries of consecutive integers

2013-05-26 Thread Steve Taylor
] 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 a systematic solution

[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

Re: [R] Boundaries of consecutive integers

2013-05-13 Thread arun
:18 PM Subject: [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

Re: [R] Boundaries of consecutive integers

2013-05-13 Thread arun
#2  22  29 #3  33  40 A.K. - Original Message - From: arun smartpink...@yahoo.com To: Lizzy Wilbanks egwilba...@ucdavis.edu Cc: R help r-help@r-project.org Sent: Tuesday, May 14, 2013 12:11 AM Subject: Re: [R] Boundaries of consecutive integers May be:   matrix(c(test[c(TRUE,diff(test