R/as.environment.xts.R

Defines functions as.environment.xts

Documented in as.environment.xts

as.environment.xts <- function(x) {
  e <- new.env()
  lapply(1:NCOL(x), function(.) assign(colnames(x)[.], x[,.],envir=e))
  e
}

Try the xts package in your browser

Any scripts or data that you put into this service are public.

xts documentation built on March 18, 2018, 2:18 p.m.