I want to make a wide table with the data from a long table which only has two columns, I´ve tried in many ways but I couldn't do it. What funtion do I need to use?
Long table:
| Cepas | Valor |
|---|---|
| B1 | 5.3 |
| B1 | 4.25 |
| B1 | 2.2 |
| B1 | 2.5 |
| B2 | 3.15 |
| B2 | 2.5 |
| B2 | 5.7 |
Wide table (expected output):
| B1 | B2 | B3 |
|---|---|---|
| 5.3 | 3.15 | 17.8 |
| 4.25 | 2.5 | 2.6 |
| 2.2 | 5.7 | 3.1 |
| 2.5 | 2.5 | 31.1 |