The Status column has been grouped into two observations eg successful and failed
in my code, I have grouped by the merchant RGP.
What I want is that I want to create or mutate and give me the sum of successful value for each merchant and also give me sum of failed value for each merchant
and create another column and give me the percentage of successful for each merchant and repeat the same for failed
but I didn't get the result
it keeps returning zeros for each merchant
you can help me add or edit my code and write a new one for me probably learn from it
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
Hi friend, sorry, you must have missed the part where practical advice was given around how to share an example data.frame you prepared. Look for dput() and also how to format text as code for the forum. It's all there, keep going with it, it will pay off