Hi R experts,

 

The below is an RBloomerg command. The object "intra" here is a zoo
object. I need to convert this zoo object into a data frame, called bb.


"

library(zoo)

library(chron)

library(RDCOMClient)

library(RBloomberg)

 

conn<-blpConnect(show.days="trading",na.action="previous.days",periodici
ty="daily")

intra<-blpGetData(conn, c("NOK1V FH Equity","AUA AV Equity"),
"LAST_PRICE", start=as.chron(as.Date("10/11/2006",
"%m/%d/%Y")),end=as.chron(as.Date("12/5/2006","%m/%d/%Y")),barfields="VO
LUME", barsize=10)

bb=as.data.frame(intra)

blpDisconnect(conn)

 

"

 

But there is some problem in converting "intra" zoo object to "intra" a
data frame. I get the below error.

 

> bb=as.data.frame(intra)

Error in substr(x, as.integer(start), as.integer(stop)) : 

        invalid substring argument(s) in substr()

 

For this matter, is I give "intra" in the command prompt of R, I get the
same error message:

 

> intra

Error in substr(x, as.integer(start), as.integer(stop)) : 

        invalid substring argument(s) in substr()

 

> class(intra)

[1] "zoo"

 

 

Can anybody help me on this?

 

Thanks in advance..


        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch 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