Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

parallelLapply

Parallel versions of apply-family functions.


Description

parallelLapply: A parallel lapply() version.
parallelSapply: A parallel sapply() version.
All functions are simple wrappers for parallelMap().

Usage

parallelLapply(xs, fun, ..., impute.error = NULL, level = NA_character_)

parallelSapply(
  xs,
  fun,
  ...,
  simplify = TRUE,
  use.names = TRUE,
  impute.error = NULL,
  level = NA_character_
)

Arguments

xs

(vector | list)
fun is applied to the elements of this argument.

fun

function
Function to map over xs.

...

(any)
Further arguments passed to fun.

impute.error

(NULL | function(x))
See parallelMap().

level

(character(1))
See parallelMap().

simplify

(logical(1))
See sapply(). Default is TRUE.

use.names

(logical(1))
See sapply(). Default is TRUE.

Value

For parallelLapply a named list, for parallelSapply it depends on the return value of fun and the settings of simplify and use.names.


parallelMap

Unified Interface to Parallelization Back-Ends

v1.5.0
BSD_2_clause + file LICENSE
Authors
Bernd Bischl [cre, aut], Michel Lang [aut] (<https://orcid.org/0000-0001-9754-0393>), Patrick Schratz [aut] (<https://orcid.org/0000-0003-0748-6624>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.