This question is too vague. There are probably an infinite number of ways to rank them. Are apples better than bananas? Is the second element of the vector more important than the third? By how much? --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity.
Manish Gupta <mandecent.gu...@gmail.com> wrote: >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. > >______________________________________________ >R-help@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.