R question:I would like to use a data-frame with x coordinates in one column and y coordinates in the second column to fill in a matrix. The matrix would then be used by heatmap()
to create a dendrogram.
Here is an example:
> head(S1)
DB_num AD_num
1 2 8060
2 7 3553
3 8 4812
4 13 7745
5 24 3315
6 24 6012
I would also need to know how to make the matrix if possible. The data-frame's max value is 15,490 so I guess the matrix would have to be 15,490 by 15,490. Since the matrix is so large I guess it would have to be filled with NA rather than zeros?