I am fairly new to R
and my question is rather basic. I use the Rblpapi
package to download data from directly Bloomberg into a variable x
. This data is then listed as "20 observations of 2 variables" in my environment data. It consists of a date (ordered by time) on the left and monthly price data, as follows:
-----------------------------
Date PX_LAST
-----------------------------
2014-06-30 55.3;
2014-07-31 52.1;
etc...
I now would like to use this data in quantmod but it seems I need xts data. How can I easily convert this sort of data into the xts format, so that I can further work with it? I always get the error:
Error in try.xts(x, error = "chartSeries requires an xtsible object"): chartSeries requires an xtsible object