My data "gaa" is huge distance matrix data. The problem is I lost my origin data...So.. I want to get data.frame from distance matrix. For example,
b=data.matrix(gaa[1:5,1:5])
>b
12 21 23 34 45
21 0 0 0 0 0
23 243 0 0 0 0
34 126 134 0 0 0
45 141 470 265 0 0
56 93 213 143 214 0
and I want data like
>orgin_gaa[1:5,]
12 xxx
21 xxx
23 xxx
34 xxx
45 xxx
56 xxx
please help me, how can I get my new data frame data? Is it impossible? Thanks for help!