R/evaluate_fun_sim.R

Defines functions evaluate_fun_sim

evaluate_fun_sim <- function(   X0, 
                                X_IDX,
                                funs, 
                                eval_funs){

    X <- X0
    for (i in seq_along(funs)){
        fun <- funs[i]

        X[, i] <- eval_funs[[fun]][X_IDX[, i]] 
    }
    return(X)
}

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.