correlation using names within a condition

Hi, can you provide a reproducible example of your datasets? We don't have access to them.