[R-SIG-Finance] timeDate class query
Ian Seow
ianseow at gmail.com
Thu Jul 24 03:16:25 CEST 2008
Hi Yohan thanks for your reply. Are you referring to version 270.75
for fCalendar? This is the latest version I could find and it is the
version I am currently using. I must be missing something, because
when I try length(timeCalendar( ) ) I get the following error:
> test=timeCalendar(m = c(9, 1, 8, 2), d = c(28, 15, 30, 9),
+ y = c(1989, 2001, 2004, 1990), FinCenter = "GMT")
> test
GMT
[1] [1989-09-28] [2001-01-15] [2004-08-30] [1990-02-09]
> length(test)
Error in prod(x at Dim) : no slot of name "Dim" for this object of class "timeDate"
On 7/23/08, Yohan Chalabi <chalabi at phys.ethz.ch> wrote:
> >>>> "IS" == "Ian Seow" <ianseow at gmail.com>
> >>>> on Fri, 11 Jul 2008 10:39:08 +0800
>
> IS> Hi, I have a query on the timeDate class in the fCalendar Package.
> IS> I have a large data set of intraday observations (in GMT) containing
> IS> 407,100 POSIXct objects which I want to convert into timeDate objects
> IS> and then view the result in my local time zone ('Asia/Singapore').
> IS> The conversion works fine, however, it seems that timeDate does not
> IS> have 'Dims' and hence does not allow for length(), head() and tail()
> IS> to be performed.
>
> Do you have the latest version of fCalendar?
>
> length(timeCalendar()) works fine with the current version of fCalendar available at CRAN.
>
>
> regards,
> Yohan
>
> --
> PhD student
> Swiss Federal Institute of Technology
> Zurich
>
> www.ethz.ch
> www.rmetrics.org
>
More information about the R-SIG-Finance
mailing list