R/as.xRing.R

Defines functions as.xRing

as.xRing <- function(x) {
  # x <- x[c(
  #   "profile.raw",
  #   "profile.smooth",
  #   "profile",
  #   "trw",
  #   "density",
  #   "limits.problems",
  #   "limits",
  #   "limits.ew",
  #   "limits.lw",
  #   "years",
  #   "scale",
  #   "span",
  #   "name"
  # )]
  x <- x[!is.na(names(x))]
  class(x) <- c("xRing", "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.