[R-sig-finance] rMetrics bug

Parlamis Franklin fparlamis at mac.com
Fri Dec 2 06:52:34 CET 2005


In method rev.timeDate

 > rev(timeSequence(len=20))
[1] "Honolulu"
[1] [2004-01-09] [2004-01-08] [2004-01-07] [2004-01-06] [2004-01-05]  
[2004-01-04] [2004-01-03] [2004-01-02]
[9] [2004-01-01]



Note the following:

 > rev(timeSequence(len=20))@Dim
[1] 20

 > rev(timeSequence(len=20))[15]
[1] "Honolulu"
[1] [NA]

 > rev(timeSequence(len=5))
[1] "Honolulu"
[1] [NA]         [NA]         [NA]         [NA]         [2004-01-05]  
[2004-01-04] [2004-01-03] [2004-01-02]
[9] [2004-01-01]



Class "POSIXlt" is a named list of exactly nine vectors.  hmmmmmm . . .



More information about the R-sig-finance mailing list