Skip to content
Prev 164431 / 398503 Next

Sorting problem

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?