Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Return all non-index attributes for xts objects, in sorted order
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
You can’t perform that action at this time.