[R] Sorting problem

ronggui ronggui.huang at gmail.com
Thu Dec 11 16:34:22 CET 2008


Sys.setlocale(,"C")
x1 <- as.character(date()) # I use date to record the time, and save
it to sqlite database, to it converted to character
x1_2 <- strptime(x1, "%a %b %d %H:%M:%S %Y")

x2 <- as.character(date())
x2_2 <- strptime(x2, "%a %b %d %H:%M:%S %Y")

X<-c(x1_2,x2_2)

order(X)  ## I want to get the permutation other than the sorted vector.
## order(X) works in windows but not Linux.

any alternative way to the the permutation?

-- 
HUANG Ronggui, Wincent
Tel: (00852) 3442 3832
PhD Candidate, City University of Hong Kong
Website: http://ronggui.huang.googlepages.com/
RQDA project: http://rqda.r-forge.r-project.org/



More information about the R-help mailing list