Two hourly xts have below format, but xts1 has some missing times.
time speed power
2010-01-01 00:00:00 0.1 1.1
2010-01-01 01:00:00 0.2 1.2
.....
When combine them into one file(get the average of speed, and sum the power based on time), get non--conformable arrays error. The command used was:
hourly.data.table = data.table (time = time(xts1), meanspeed= (coredata(xts1$speed)+coredata(xts2$speed))/2, power= coredata(xts1$power)+coredata(xts2$power))
Thanks in advance.