I have a data frame with two columns. The first one "V1" indicates the objects on which the different items of the second column "V2" are found, e.g.: