[R] how to select column wich median is in this interval [5;6]

ikuzar razuki at hotmail.fr
Thu Jan 12 23:42:05 CET 2012


Hello, 
I have got a data frame df like this :
> df
   e1 e2 e3 e4
1   1 11  1 21
2   2 12  2 22
3   3 13  3 23
4   4 14  4 24
5   5 15  5 25
6   6 16  6 26
7   7 17  7 27
8   8 18  8 28
9   9 19  9 29
10 10 20 10 30

where e1 ... e3 are vectors
I have to select columns which median is in the interval [5;6] ( Here, for
instance, e1 and e3)
I would not want to use loop... (for, while)

I search for smthing like this : 
e_candidates = df[, ]
But I do not know how to write the condition, 

Thanks for your help

Thanks for your help
I'd like to know how to select 

--
View this message in context: http://r.789695.n4.nabble.com/how-to-select-column-wich-median-is-in-this-interval-5-6-tp4290745p4290745.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list