Hello,
Can you provide some sample data with desired output ? It would also be awesome if you could ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.
Thank you.