This is at least the 2nd time you've been asked your questions as a reproducible example.
When seeking coding advice, it takes a lot of time for people to help when you don't provide a minimal reprex either setting up your problem, or reproducing the error you're facing. From experience, it's sometimes the difference between taking a few minutes to answer your question to taking a half-hour or more. When it takes a lot of time to answer a question, you'll find folks are far less likely to give advice, particularly in code form.
You also appear to be ignoring the advice you receive from folks here regarding improving the way you ask questions. This is generally considered rude.
Let me know if you have questions about setting up this question as a reprex.