Running aggregate on wide matrices takes loooong; use nested apply or data tables instead !
R-bloggers 2025-04-04
Summary:
The aggregate function can be very useful in R, allowing one to run a function (e.g. mean) within groups of rows, in each column in a matrix/data-frame and organize the results in an easy-to-read table. However, the function takes long to run for very ...
Continue reading: Running aggregate on wide matrices takes loooong; use nested apply or data tables instead !