This will send to Map or clusterMap, depending on whether cl is provided. Because they use different argument names for the main function to call, leave that argument unnamed.

Map2(f, ..., cl = NULL)

Arguments

f

passed as f to Map or fun to clusterMap

...

passed to Map or clusterMap

cl

A cluster object, passed to clusterMap

Examples


if (FALSE) {
a <- 1:5
Map2(a, f = function(x) x)

}