Dear Sir/Madam,

 

I have an old R-code using R-metrics functions that worked quite well
under R2.7.

 

Having updated R to 2.8 and all packages as well, the same (!) code does
not work any more. The main problem that I have is that R keeps
complaining that the timeSeries object does not contain any data which
is not true. You will find one example below. Can you help? Thank you.

 

Yours truly,

 

Wing Lon Ng

 

==================================

 

# EXAMPLE

# name of object is "facret"

 

> class(facret)

[1] "timeSeries"

attr(,"package")

[1] "timeSeries"

> head(facret)

GMT

              US.PDD  US.DDMR  US.DDME  US.CSV2

1990-01-31       NaN      NaN      NaN 0.025768

1990-02-01 0.0087583 0.020413 0.029236 0.025945

1990-02-02 0.0087583 0.020413 0.029236 0.025308

1990-02-05 0.0087583 0.020413 0.029236 0.026434

1990-02-06 0.0087583 0.020413 0.029236 0.026690

1990-02-07 0.0087583 0.020413 0.029236 0.032022

> plot(facret)

Error: no slot of name "Data" for this object of class "timeSeries"

Error in plot(x = as.POSIXct(x@positions), y = x@Data, ...) : 

  error in evaluating the argument 'y' in selecting a method for
function 'plot'

> plot(facret[2:10,])

Error: no slot of name "Data" for this object of class "timeSeries"

Error in plot(x = as.POSIXct(x@positions), y = x@Data, ...) : 

  error in evaluating the argument 'y' in selecting a method for
function 'plot'

 

----------------------------------------------------

Dr Wing Lon Ng

Centre for Computational Finance and Economic Agents

University of Essex

Wivenhoe Park

Colchester CO4 3SQ

Essex, UK

Tel: +44 (0)1206 87-4684

Fax: +44 (0)1206 87-4122




	[[alternative HTML version deleted]]

