How to preserve the list of data frame form after using parallel apply
问题 I have the following function my_func which takes parameter stored in a data frame params and take one extra param as another df independently indf library(tidyverse) my_func <- function (x=NULL,y=NULL,z=NULL, indf=NULL) { out <- (x * y *z ) out * indf } params <- tribble( ~x, ~y, ~z, 5, 1, 1, 10, 5, 3, -3, 10, 5 ) indf <- tribble( ~A, ~B, ~C, 100, 10, 1, 1000, 300, 3, 20, 10, 5 ) params %>% pmap(my_func, indf=indf) It produces the following list of data frames: #> [[1]] #> A B C #> 1 500 50