llply_ensemble applies a function to an ensemble object and then organizes the output to match the data frame the ensemble object was created from. The output can be merged to the original data frame with cbind. Or by directly saving it as a new column in the dataframe.
1 | llply_ensemble(ens, FUN, ...)
|
ens |
A mg_ensemble object |
FUN |
A function to be applied to the model objectss in the ensemble object |
arguments |
to be passed to FUN |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.