[R-SIG-Finance] RBloomberg update on "Error in dimnames(x) <- dn : 'dimnames' applied to non-array"

Larry Shank larry.shank at gmail.com
Tue Jul 19 17:52:42 CEST 2011


The work-around works great for bdp, bds, and bdh; however, it is not working
for tick or bar (for me at least).  I have posted examples below.  Do you
see anything that I may need to change.  Thank you!

> library(RBloomberg)
Loading required package: rJava
> conn <- blpConnect()
R version 2.12.2 (2011-02-25) 
rJava Version 0.8-8 
RBloomberg Version 0.4-149 
Java environment initialized successfully.
Looking for most recent blpapi3.jar file...
Adding C:\blp\API\APIv3\JavaAPI\v3.4.3.2\lib\blpapi3.jar to Java classpath
Bloomberg API Version 3.4.3.2

> bdp(conn, "AMZN US Equity", "NAME")
                         NAME
AMZN US Equity AMAZON.COM INC

> bdh(conn, "GOLDS Comdty", "PX_LAST", "20090101", "20090107")
                 date PX_LAST
2009-01-01 2009-01-01  879.45
2009-01-02 2009-01-02  875.40
2009-01-05 2009-01-05  859.50
2009-01-06 2009-01-06  863.90
2009-01-07 2009-01-07  842.95

> tick(conn, "RYA ID Equity", "TRADE", "2010-09-21 09:00:00.000",
> "2010-09-21 09:10:00.000")
Error in dimnames(x) <- dn : 
  length of 'dimnames' [2] not equal to array extent

> bar(conn, "RYA ID Equity", "TRADE", "2010-09-21 09:00:00.000", "2010-09-21
> 15:00:00.000", "60")
Error in process.result(result, "first.column") : subscript out of bounds

--
View this message in context: http://r.789695.n4.nabble.com/RBloomberg-update-on-Error-in-dimnames-x-dn-dimnames-applied-to-non-array-tp3660756p3678480.html
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list