run_all_replicates: Run all replicates

View source: R/analyze.r

run_all_replicatesR Documentation

Run all replicates

Description

This function makes it easy to run an arbitrary function in parallel.

Usage

run_all_replicates(
  replicates,
  boot_function,
  N = length(replicates),
  args = NULL,
  max.threads = 20,
  parallel.libraries = NULL
)

Arguments

replicates

A list that contains a value to be passed to the 'boot_function' for each run.

boot_function

An arbitrary function that is run once for each item in the 'replicates' list. The value in each list item in 'replicates' is passed as the first value to 'boot_function'.

N

The number of runs to do, which defaults to the length of 'replicates'.

args

Additional values to pass to 'boot_function'.

max.threads

The maximum number of threads to use. Will attempt to use the smaller of 75 threads or 'max.threads'.

parallel.libraries

A list of libraries that are loaded for each thread.


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.