CodexBloom - AI-Powered Q&A Platform

Unexpected results when using `aggregate()` with custom functions in R

👀 Views: 0 💬 Answers: 1 📅 Created: 2025-08-21
R data-aggregation custom-functions

I'm trying to summarize a dataset with a custom function using `aggregate()`, but the results are not what I expect. I'm working with R version 4.1.0 and I have...