Re: [R] Sorting a date vector

2008-12-16 Thread Bingxiang Miao
2008/12/16 RON70 > > Yes you are right. However using that code, format of date is altered. I > need > to main same format as the input data i.e. "10-02-2008" not "2008-10-02", > still having date-class. Any better idea? You may try this: format(sort(a,decreasing=TRUE),"%m-%d-%Y") > > > > D

[R] How I can read the binary file with "different type"?

2008-08-21 Thread Bingxiang Miao
Hi all, I have a binary file which have 8*100 bytes. The structure of the file is as follows: every eigth bytes represent 2 data:the first four bytes is the little-endian for integer, the next four bytes is the little-endian for floating32. The structure of the following bytes is as the same as