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
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
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
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
4 matches
Mail list logo