R/as.environment.xts.R

as.environment.xts <- function(x) {
  e <- new.env()
  lapply(1:NCOL(x), function(.) assign(colnames(x)[.], x[,.],envir=e))
  e
}
R-Finance/xts documentation built on May 8, 2019, 4:51 a.m.