I have a dataframe that looks like this
bin val
A-B-C 0.345
K-P 0.612
I would like to un-bin the data above into the following using R
bin val
A 0.345
B 0.345
C 0.345
K 0.621
P 0.621
I appreciate your suggestions.