'map2 equivalent apply family

I'd like to iterate between two vectors applying the following function to a dataframe. Since the dataframe is huge and I know that the apply family functions are faster than map functions.. I was wondering if there is an alternative to map2

se<-rbeta(iters,96,6)
epi.a<-freedom::rpert(iters, x.min=1.5, x.mode=2, x.max=3)
p=0.2
p2=epi.a*p
fun_1 <- function(n) map2_dbl(.x = se, .y = p2, ~ 1 - (1 - .x * .y) ^ n)
df1 <- df %>% mutate(step1 = map(n, ~ fun_1(.x))) 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source