R/as.xRingList.R

Defines functions as.xRingList

# helper
#' @export
"[.xRingList" <-
  function(x, i, ...) {
    r <- NextMethod("[")
    class(r) <- class(x)
    r
  }

as.xRingList <- function(x) {
  x <- lapply(x, as.xRing)
  class(x) <- c("xRingList", "list")
  x
}

Try the xRing package in your browser

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

xRing documentation built on April 22, 2022, 5:05 p.m.