R/get_fun_sim_args.R

Defines functions get_fun_sim_args

get_fun_sim_args <- function(twig_funs, fun_args, sim_args) {

    fun_sim_args <- list()

    for (fun in twig_funs){
      sel_fun_args <- fun_args[[fun]]

      fun_sim_args[[fun]] <- sim_args[sim_args %in% sel_fun_args]
    }

    return(fun_sim_args)
}

Try the twig package in your browser

Any scripts or data that you put into this service are public.

twig documentation built on April 12, 2025, 2:08 a.m.