I want to use ellipsis parameters inside map function of purrr package. this is a toy example:
f1<-function(x,a=NA,b=NA,prs=seq(0, 1, 0.25),SW=T){ if(SW
You just need to pass the ellipses through the map_df() call as well. Otherwise they can't get into the inner f1() call.
map_df()
f1()
f2 <- function(df, ...){ res <- map_df(colnames(df), ~f1(df[,.], a=., ...), ...) return(res) }