Helper function for sampling_functions
. Builds a function call in a enclosed environment with all fixed arguments and column indices so that the function can later be passed row subsets of an event table for sampling.
build_function_call(
fun,
bin.col,
data.cols,
arg.cols = NULL,
group.cols = NULL,
arglist = NULL
)
Function to use.
Column defining the grouping of bins.
Columns to each be passed as first argument to the function.
Columns to be passed as the second, third, ... arguments of the function.
Columns to be used as factors.
Additional arguments to pass to function fun
.
A function whose parent environment encloses all of its fixed arguments.