I have a large dataframe in R, two groups might look like this:
id tnr 1 1 1 1-3 1 4 1 5 1 6 1 6-8 1 8-9 1 10 1