R/Class-xts.R

Defines functions tzone

setOldClass("xts")
setOldClass("zoo")
tzone = function(x, ...) {
  if (utils::packageVersion("xts") <= "0.11.2") {
    if (inherits(x, "xts")) {
      tzoneAttr = attr(xts::.index(x), "tzone")
    } else {
      tzoneAttr = attr(x, "tzone")
    }
  } else {
    tzoneAttr = xts::tzone(x, ...)
  }
  tzoneAttr
}

Try the spacetime package in your browser

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

spacetime documentation built on Sept. 12, 2024, 7:42 a.m.