fpurrr_map: Wrapper for map

View source: R/00_flowGraphSubset_constructor.R

fpurrr_mapR Documentation

Wrapper for map

Description

Wrapper for purrr::map and furrr::future_map to handle parallel-ization

Usage

fpurrr_map(x, f, no_cores = 1, prll = TRUE, ...)

Arguments

x

Variable to recurse over; must be indices!

f

Function to recurse over.

no_cores

Number of cores to use; future must have been ran already.

prll

If set to FALSE, forces use of purrr::map instead of furrr::future_map, Default: TRUE

...

Other parameters used by f.

Details

Wrapper for purrr::map and furrr::future_map to handle parallel-ization easily; note that future must have been ran already outside of the function and outputs will always be a list.

Value

Unnested named list.

See Also

map future_map


aya49/flowGraph documentation built on Feb. 4, 2024, 6:40 p.m.