Given my tibble test below, I would like to keep only the rows for which siren_ent is equal to "A".
The condition is : regsiege_fare column is never equal to region_etab whereas when siren_ent is equal to "B", there is at least one row where region_etab = regsiege_fare.
Many thanks in advance
test <- tibble(
siren_ent = c("A","A","A","B","B"),
region_etab = c("93","11","24","24","32"),
regsiege_fare = c("28","28","28","32","32")
)