Is there any R package to obtain a pairwise distance list if my input file is a distance matrix For eg, if my input is a data.frame like this:
A1 B1 C1 D1
A1 0 0.85 0.45 0.96
B1 0 0.85 0.56
C1 0 0.45
D1 0
I want the output as:
A1 B1 0.85
A1 C1 0.45
A1 D1 0.96
B1 C1 0.85
B1 D1 0.56
C1 D1 0.45
I found a question to do the opposite function using package 'reshape' but could not tweak it to get what I wanted.