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 (inherits(a,"HypervolumeList"))
      {
        hvl <- c(hvl, a@HVList)
      }
      else if (inherits(a,"Hypervolume"))
      {
        hvl <- c(hvl, a)
      }
    }
    
    return(new("HypervolumeList",HVList=hvl))
  }
}

Try the hypervolume package in your browser

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

hypervolume documentation built on Sept. 14, 2023, 5:08 p.m.