parallel_apply: Apply a function to all members of a collection parallelly.

Description Usage Arguments Value

View source: R/parallelism.R

Description

Apply a function to all members of a collection parallelly.

Usage

1
2
3
4
5
6
7
parallel_apply(
  collection,
  fun,
  packages = character(),
  seq_threshold = 0,
  log_frequency = 0
)

Arguments

collection

the input collection, either a list or vector

fun

function to apply

packages

the string vector of all packages used in the function (necessary!)

seq_threshold

the threshold, under which sequential execution should be chosen. If 0, it does not apply.

log_frequency

How often (as per number of processed items in the collection) to log. 0 means no logging

Value

The result - a collection of results of function applications to the input collection, in the same order.


VladoBaca/BNRewiringRobustness documentation built on Jan. 25, 2022, 11:51 p.m.