[R] Sorting a vector with conditions
ADias
diasandre at gmail.com
Fri Jan 14 02:06:50 CET 2011
Hi,
Suposse I have a vector:
v->c(10,13,4,6,45,27,32,21,1,8,14,36)
how do i sort just the odd numbers leaving the rest - the even numbers - on
the same positions as they already are on the vector?
thanks
AD.
--
View this message in context: http://r.789695.n4.nabble.com/Sorting-a-vector-with-conditions-tp3217031p3217031.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list