Skip to content
Back to formatted view

Raw Message

Message-ID: <38b9f0350812110734j7be10db8y3a7ac3d21ca3b135@mail.gmail.com>
Date: 2008-12-11T15:34:22Z
From: ronggui
Subject: 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?

-- 
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/