R/build.hull.list.R

Defines functions build.hull.list

Documented in build.hull.list

build.hull.list <-
function(frame) {
  ## Given a data frame containing isotope values,
  ## return a matrix containing the values in the data frame, "stacked" for
  ## the use of convhulln
  d = dim(frame)[2]
  out = c()
  for (i in seq(1, length(names(frame)), d)) {
    a = frame[i:(i+d-1)]
    a = na.omit(a)
    out = rbind(out, a)
  }
  out
}

Try the EDFIR package in your browser

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

EDFIR documentation built on May 2, 2019, 12:36 p.m.