I have a list of samples and the name of mutations happen in each sample in a second column. For a given sample, there may be more than one mutation like below
In R, how I can convert it into a data frame with sample label in one column and then the absolute number of mutations per sample in a second column?