I am having denials dataframe and a payment dataframe. I want to check if a denial has received how many payments and sum of it.
Conditions are denial and payment account id must be same and denial date < payment date.
i want these 'how many payments received' and 'sum of payments' as a seperate features in denials dataframe.
How to achieve this using dplyr mutate