cfp_altapply {ConFluxPro} | R Documentation |
Apply a function over a list of models
Description
Apply a function to a list of cfp_pfres pr cfp_fgres objects stored in an cfp_altres object. This can be used to summarise alternate() results.
Usage
cfp_altapply(X, FUN, ...)
Arguments
X |
Either a cfp_altres object or a list. |
FUN |
the function to be applied to each element of |
... |
optional arguments to |
Value
data.frame with the results of FUN bound together with added column run_id as identifier of the original list elements.
Examples
PROFLUX <- ConFluxPro::base_dat |> pro_flux()
model_list <- list('1' = PROFLUX, '2' = PROFLUX)
cfp_altapply(model_list, efflux)
[Package ConFluxPro version 1.3.1 Index]