Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
joshuaulrich opened this issue Jan 14, 2022 · 0 comments
Closed

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

joshuaulrich opened this issue Jan 14, 2022 · 0 comments
Labels
enhancement Enhancement to existing feature
Milestone

Comments

@joshuaulrich
Copy link
Owner

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'
joshuaulrich added a commit that referenced this issue Jan 16, 2022
rbind() would throw an obscure error if one of the xts objects does
not have a dim attribute. We can handle this case even though all xts
objects should always have a dim attribute.

Fixes #361.
@joshuaulrich joshuaulrich added the enhancement Enhancement to existing feature label Oct 6, 2022
@joshuaulrich joshuaulrich added this to the 0.12.2 milestone Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing feature
Projects
None yet
Development

No branches or pull requests

1 participant