Follow-up on a closed post: translating non-idiomatic R to the tidyverse

2 posts were merged into an existing topic: Does anyone mind looking at my code? I am not sure if it does what I want it to do