[R] Count between interval

Bosken jens.bossaert at kahosl.be
Mon Feb 22 15:49:06 CET 2010


Hi all,

I take a simple dataset like this:

-1.3
1
-1.5
-1
1.5
-2.5
3
-0.5

Now I want to count how many values there are between -2 and 2.

The answer here would be 6.

Can anyone do this with R?

Thank you in advance.

Gr. Bosken 
-- 
View this message in context: http://n4.nabble.com/Count-between-interval-tp1564537p1564537.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list