Sorry for the last post. I didn't use the latest version of R. It
works under Linux as well for R-2.8.0 patch.
Best
On Thu, Dec 11, 2008 at 11:34 PM, ronggui <ronggui.huang at gmail.com>
wrote:> 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/
>
--
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/