A function to group and summarize to add aggregations to a barn_obj
using specified variables and expressions.
WARNING: Risk of overfitting and bad generalization if not done
when resampling.
Usage
plant_summarize(barn_obj, .by = NULL, ...)
Arguments
- barn_obj
An object of class 'barn'.
- .by
Varible(s) to group by. Currently unused; must be empty.
- ...
Expressions to compute summarizing values.
Value
A modified barn_obj
with summarized data in the combined slot.