powered by
apply_by_groups(dataset, metadata.var, fn.to.apply = "mean", variables = NULL, variable.bounds = NULL)
## Example of applying a function to groups data(cachexia) apply.groups.result = apply_by_groups(cachexia, "Muscle.loss", mean)
Run the code above in your browser using DataLab