[R] How to rank vectors based on their elements?

Manish Gupta mandecent.gupta at gmail.com
Sun Apr 15 04:10:48 CEST 2012


Hi,

I am working on ranking algo? I have data which is in the form of vectors
(feature) for each class and i need to rank them based on feature vector.

class1<-c(1,3,4,-2,0)
class2<-c(2,0,0,-3,0)
class3<-c(2,3,1,4,5)
class4<-c(-4,-5,1,0,0)

I need to rank class1, class2, class3, class4 & class5. How can i implement
it?

Regards

--
View this message in context: http://r.789695.n4.nabble.com/How-to-rank-vectors-based-on-their-elements-tp4558409p4558409.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list