- Wed 23 September 2020
- R
- Gordon McDonald
Using ellipsis (...) and purrr::pmap()
Function with arbitrary arguments using ellipsis (...) Let's define a function which takes in arbitrary arguments and evaluates an expression on those arguments: eval_expres <- function(expres, ...){ #this part gets all the …