I have a list of xts objects that are mutually exclusive days. I would like to merge the list into one large xts object. My attempt at doing this was to”
merged_reg_1_min_prices <- do.call(cbind, reg_1_min_prices)
However this seems to run out of memory. reg_1_min_prices is 6,000 days of 1 minute returns on mutually exclusive days so it’s not very large. Does anyone know how to get around this?
To be clear: reg_1_min_prices contains mutually exclusive days with 1 minute prices on each day and each entry in the list is an xts object.
I use the strategy provided by Dominik in his answer to this question
I have turned it into a function in my qmao package. This code is also at the core of getSymbols.FI in the FinancialInstrument package.
If you want to
rbinddata.frames, @JoshuaUlrich has provided an elegant solution hereAs far as I can tell (without looking very closely) memory is not an issue with any of the three solutions offered (@JoshuaUlrich’s, @Alex’s, and qmao::do.call.rbind). So, it comes down to speed…
do.call.rbindclearly wins on speed.