I understand how to use map to iterate over arguments in a df and create a new list column.
For example,
params <- expand.grid(param_a = c(2, 4,
How about using rowwise and mutate directly without map:
rowwise
mutate
map
my_fun <- function(param_a, param_b){ rep(5, param_a) * param_b } df.preprocessed <- dplyr::as.tbl(params) %>% rowwise() %>% dplyr::mutate(test_var = list(my_fun(param_a, param_b))) %>% tidyr::unnest()