I have a data frame where one column contains a range (or ranges) of numbers. I would like to turn this into a list of numbers based of the given range.
Example input:
"35-40"
or
"35-43, 45-47"
This should yield:
[1] 35 36 37 38 39 40
and
[1] 35 36 37 38 39 40 41 42 43 45 46 47