Displaying 1 result from an estimated 1 matches for "dbsr".
Did you mean:
dbs
2005 Jan 21
2
Need help to transform data into co-occurence matix
Dear R experts,
I have the data in the following fomat(from some kind of card sorting process)
ID Category Card numbers
1 1 1,2,5
1 2 3,4
2 1 1,2
2 2 3
2 3 4,5
I want to transform this data into two co-occurence matrix (one for each ID)
-- For ID 1
1 2 3 4 5
1 1 1 0 0 1
2 1 1 0 0 1
3 0 0 1 1 0
4 0 0 1 1 0
5 1