I have a vector of name combinations like so:
vec <- c("US;DE;US", "AU;AU;JP", "IN;SA;CN;RU", "PK;IQ;IQ")
I want to keep only the unique names in each vector, i.e., the final vector should look as follows:
vec <- c("US;DE", "AU;JP", "IN;SA;CN;RU", "PK;IQ")