Im looking for an R algorithm to take this table:
One Two Value
A B 1002
A C 2312
B A 6543
B C 387
C A 9364
C B 8429
And transform that into this kind of matrix:
## A B C
## A 0 6543 9364
## B 1002 0 8429
## C 2312 387 0
Any considerations? I don't know what the name of the first kind of table is, if there is any. Thanks!