Learn R Programming

hypervolume (version 3.1.4)

to_hv_list: Read hypervolumes from directory

Description

Takes a path to a directory containing only rds files and reads them into a HypervolumeList object.

Usage

to_hv_list(path)

Value

HypervolumeList object

Arguments

path

absolute or relative path to directory containing rds files

Details

Use to_hv_list on the output from hypervolume_resample when method = "bootstrap" to read bootstrapped hypervolumes into memory.

Examples

Run this code
if (FALSE) {
library(palmerpenguins)
data(penguins)
bill_data = na.omit(penguins[,3:4])
hv = hypervolume(bill_data)

# Use detectCores to see how many cores are availible in current environment
path = hypervolume_resample("example_bootstrap", hv, method = "bootstrap", n = 50, cores = 12)
hvs = to_hv_list(path)
}

Run the code above in your browser using DataLab