R/apply_to_state_and_time.R

Defines functions apply_to_state_vec_and_time

apply_to_state_vec_and_time <- function(func,y,t,time_symbol){
    all_args <- c(y,t)
    names(all_args) <- c(names(y),time_symbol)
    arg_names <- names(formals(func))
    arg_values<- as.list(all_args[arg_names])
    do.call(func,arg_values)
}

Try the SoilR package in your browser

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

SoilR documentation built on Oct. 13, 2023, 5:06 p.m.