R/to_hv_list.R

Defines functions to_hv_list

Documented in to_hv_list

to_hv_list <- function(path) {
  # Returns hypervolume list object
  hvs = new("HypervolumeList")
  
  # adds every hypervolume object in the directory to list
  hvs@HVList = foreach(file = list.files(path), .combine = c) %do% {
    readRDS(file.path(path, file))
  }
  return(hvs)
}
bblonder/hypervolume documentation built on May 3, 2024, 8:45 a.m.