When I try to convert the zoo object to a timeSeries object, which would
allow me to utilize Rmetrics packages, I get an error message. 

 

> Data<-read.zoo("c:\\DOWUBSPRICING.txt,na.strings="NA",sep="\t",header=T)

> is(Data)

"zoo"

> as.timeSeries.zoo(Data)

Error in .local (.Object, . )

 

Is this happening because I am using daily data? Originally, I was trying to
import the data as a timeSeries, but could not overcome problems with the
date configuration. I tried to create a zoo object with the intention of
converting it into a timeSeries. 

My apologies if this is too basic a question, but I am new to R and have
been struggling with this problem. 

 

The object in question contains daily adjusting closing price data.

 

                                DJP         JJA          COW

2011/1/21            49.01     64.68     30.97

2011/1/20            48.62     63.78     31.11

.

 

 

Your help is greatly appreciated!!


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to