joshuaulrich / xts

Extensible time series class that provides uniform handling of many R time series classes by extending zoo.
http://joshuaulrich.github.io/xts/
GNU General Public License v2.0
220 stars 71 forks source link

rbind.xts() errors if object does not have a dim attribute #361

Closed joshuaulrich closed 2 years ago

joshuaulrich commented 2 years ago

All xts objects should have a dim attribute, but it would be nice if rbind.xts() did not throw an obscure error on a malformed xts object.

R$ require(xts) 
   e <- structure(0.1, class = c("xts", "zoo"), 
     index = structure(581910048, tzone = "UTC", tclass = "Date")) 
   rbind(e, e)
## Error in rbind(deparse.level, ...) : 
##   INTEGER() can only be applied to a 'integer', not a 'NULL'