[R] Sort out number on value
Milan Bouchet-Valat
nalimilan at club.fr
Fri Apr 20 12:31:58 CEST 2012
Le vendredi 20 avril 2012 à 03:26 -0700, Yellow a écrit :
> Can anyone help me maybe with a question I can seem to find an answer on.
>
> I have this: x = c(1, 5, 70, 53, 7, 29, 75, 37, 30, 11)
>
> And I would like to have the numbers above 20 selected out.
> But I can't find what code I need for that....
> I tried sort(), but then I can't fill in I only need those above 20.
x[x <= 20]
Cheers
More information about the R-help
mailing list