# NOT RUN {
## Example of applying a function to a group
library(specmine.datasets)
data(cachexia)
apply.group.result = apply_by_group(cachexia, mean, "Muscle.loss",
"control")
# }
Run the code above in your browser using DataLab