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)
}

Try the hypervolume package in your browser

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

hypervolume documentation built on May 17, 2022, 1:06 a.m.