I have a dataframe in R with two columns:
  sampleID        annotation
    A1            orange; apple
    A2            apple; apple
    A3            apple; orange; orange; grapes; apple
    A4            grapes; orange
I would like to split the annotation column by the ";" delimiter and retain the ones that are unique and get the output as follows:
  sampleID        annotation
    A1            orange; apple
    A2            apple
    A3            apple; orange; grapes
    A4            grapes; orange