Skip to content
Prev 6538 / 15274 Next

adding xts time series

Your issue is caused by xts merging objects before performing math operations.
Data:
integer(0)

Index:
NULL
[,1]
1969-12-31 18:00:10    1

Be careful to note that your solution works because the "[[" function
does not return an xts object, so using "[[" may cause issues if you
use it when you do expect / need an xts object returned.

Best,
--
Joshua Ulrich
FOSS Trading: www.fosstrading.com



On Sat, Aug 21, 2010 at 4:58 PM, Nick Torenvliet
<nick.torenvliet at gmail.com> wrote: