I want to clean a column of an R dataframe that contains a mixture of values:
| chromosome_count |
|---|
| 26 |
| 54 |
| c.36 |
| 28-30 |
| 12, 24 |
so that it looks like this, with comma separated values split into two rows and keeping only the minimum values where a range is recorded:
| chromosome_count |
|---|
| 26 |
| 54 |
| 36 |
| 28 |
| 12 |
| 24 |
I'm a very stumped beginner and any advice would be very appreciated.