Conditional Replacement

Sorry, where is the second table?

Can you provide a reproducible example?