How to replicate a ddply behavior that uses a custom function with dplyr? September 23, 2023 by Tarik