Re: [R] using which to identify a range of values

2008-07-18 Thread Julian Burgos
Do simply which(a<100 & a>=200) Julian sj wrote: Hello, I am trying to identify values that fall within a certain range. I thought that I might be able to use the which function to do this but I have been unable to figure out a way to do it. Perhaps a little code will illustrate what i am try

Re: [R] using which to identify a range of values

2008-07-18 Thread Sebastian P. Luque
On Fri, 18 Jul 2008 11:42:09 -0700, sj <[EMAIL PROTECTED]> wrote: [...] > a <- rnorm(1000, 100, 50) which( 100 < a <= 200) > of course this doesn't work but illustrates what I ma trying to do, If > anyone has suggestions I would greatly appreciate it Have a look at ?& -- Seb

Re: [R] using which to identify a range of values

2008-07-18 Thread Henrique Dallazuanna
Try : which(a > 100 & a<= 120) On Fri, Jul 18, 2008 at 3:42 PM, sj <[EMAIL PROTECTED]> wrote: > Hello, I am trying to identify values that fall within a certain range. I > thought that I might be able to use the which function to do this but I have > been unable to figure out a way to do it. Per

[R] using which to identify a range of values

2008-07-18 Thread sj
Hello, I am trying to identify values that fall within a certain range. I thought that I might be able to use the which function to do this but I have been unable to figure out a way to do it. Perhaps a little code will illustrate what i am trying to do. a <- rnorm(1000, 100, 50) which( 100 < a