-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make as.matrix on zero-width xts similar to zoo
Calling as.matrix() on a zero-width xts object results in an error because dimnames cannot be set on a non-array (i.e. an object without dims). as.matrix.zoo() has special cases for zoo objects that are missing one or more dims. Refactor as.matrix.xts() to follow the pattern in as.matrix.zoo(), so the two functions behave similarly. Fixes #130.
- Loading branch information
1 parent
c87c703
commit 32d74e6
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters