Relative Content

Tag Archive for rgroup-bycutbinningmutate

Mutate/cut to bin grouped data by grouped break points

I have two data-frames, each with the same groups. The first data frame consists of the base data, the second an independent set of break points for each group. I want to use those break points to divide the data into bins. Is there a way to use group_by() %>% cut() or some similar sequence to perform this programatically, without manually specifying the break points?