I would like to fill in the missing values in one column in a table. In the column combName
the values should go up to 20-400
and continue with 21-1
to 21-400
and so on. For every missing value a new row should be created with the value in the right enumerated order and 0 in all other fields of the row.
combName sumLength RootID
<chr> <dbl> <int>
1 20-1 8.05 1
2 20-2 4.61 1
3 20-3 14.5 1
4 20-8 2.29 1
5 20-10 14.7 1
6 20-11 23.0 4
7 20-12 17.0 5
8 20-13 66.9 14
9 20-14 39.1 9
10 20-15 12.5 6
# ... with 1,099 more rows
Are there any ideas how this is possible?