1. That you think order() or sort() "did not work " is preposterous.
2. I suggest that you carefully read both ?sort and ?order, as you obviously do not understand what these functions do. Here is a hint to get you started: > 3:1 [1] 3 2 1 > order(3:1) [1] 3 2 1 > sort(3:1) [1] 1 2 3 -- Bert On Tue, Jul 17, 2012 at 2:42 PM, Trying To learn again < tryingtolearnag...@gmail.com> wrote: > Hi all, > > I want to order a series that is included on the second column in MCT.csv. > > I do but R doesn´t order, could be because is a csv? > > I have prove > > MCT<-read.csv("MCT.csv") > > a<-order(MCTor[,2],2,decreasing = FALSE) > > > a<-order(MCTor[,2],1,decreasing = FALSE) > > or the same with sort but didn´t worked. > > It is suposed that a will have the ordered on ascending or descending > direction, doesn´it? > > ______________________________________________ > 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. > > -- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm [[alternative HTML version deleted]]
______________________________________________ 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.