if_else two dataframes

Hello,

Happy to help if you can provide some data or a reprex (see here how to create it: FAQ: How to do a minimal reproducible example ( reprex ) for beginners)