While this is an interesting function, `dplyr` handles this case well. Also, `groupby` may not translate easily to R because of the lack of dictionaries.
While this is an interesting function,
dplyrhandles this case well. Also,groupbymay not translate easily to R because of the lack of dictionaries.