my goal is to convert a data.frame of the form:
ID 1 ID 2 Value
5 k 7
5 k 2
5 l 4
6 b 2
into a table of the form:
ID 1 k l b
5 7 4
6 2
I would then like to manipulate the data and go back to the first format again.
I tried it by using the function spread() in the library(tidyr) but do only get the following format (which is not what I want) :
ID 1 k l b
5 7
5 7
5 4
6 2
thanks for your help