R/hypervolume_join.R

Defines functions hypervolume_join

Documented in hypervolume_join

hypervolume_join <- function(...)
{
  args <- list(...)
  if (length(args)==1 & is.list(args[[1]]))
  {
    result <- new("HypervolumeList",HVList=args[[1]])
    return(result)
  }
  else
  {
    hvl <- list()
    
    for (a in list(...))
    {
      if (class(a) == "HypervolumeList")
      {
        hvl <- c(hvl, a@HVList)
      }
      else if (class(a) == "Hypervolume")
      {
        hvl <- c(hvl, a)
      }
    }
    
    return(new("HypervolumeList",HVList=hvl))
  }
}
dc165/Hypervolume-Dev documentation built on Dec. 13, 2020, 6:02 p.m.