Reshaping complex dataset, adding

Hi, is that all in one column? Can you provide a reproducible example?