I have a set of comma separated strings in an R dataframe column (Set). Each set of strings is associated with a group (Grp) and time (Time). I want to create a fourth column Z