I have the following data frame:
| ID | value | freq | 
|---|---|---|
| A | a | 0.1 | 
| A | b | 0.12 | 
| A | c | 0.19 | 
| B | a | 0.15 | 
| B | b | 0.2 | 
| B | c | 0.09 | 
| C | a | 0.39 | 
| C | b | 0.15 | 
| C | c | 0.01 | 
and I would like to get the following
| ID | freq_a | freq_b | freq_c | 
|---|---|---|---|
| A | 0.1 | 0.12 | 0.19 | 
| B | 0.15 | 0.2 | 0.09 | 
| C | 0.39 | 0.15 | 0.01 | 
Any ideas how to easily do this?
 
     
    