Hi, and welcome!
Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.
I suspect that you'll be able to use purr::map
functions to do this, but it's hard to tell without representative data and the transformation function.