robertness
5/4/2015 - 1:14 PM

implementation of R's 'do.call'

implementation of R's 'do.call'

do_call <- function(f, args){
  my_call_list <- c(list(as.name(f)), args)
  my_call <- as.call(my_call_list)
  eval(my_call)
}