Created
May 21, 2015 00:43
-
-
Save joshuaulrich/3c50eb98386c7d3b812d to your computer and use it in GitHub Desktop.
Return all non-index attributes for xts objects, in sorted order
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
nonIndexAttr <- function(x) { | |
a <- attributes(x) | |
n <- names(a)[!names(a) %in% "index"] | |
a[sort(n)] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment