Bivariate Lapply with Custom Return Type
map2(x, y, f, output_type = "list")
A list (if output_type = "list") or a vector, sharing names with x,
built by applying f to each element of x and y simultaneously. This is a
rough implementation of the map2
function from the purrr
package
purrr aims at removing the dependency from that package.
A couple of vectors or lists with the same size
A function
The desired return type. Should be one of "list" (the default), "integer", "numeric" or "character".