I have a dataframe with distances
df<-data.frame(site.x=c(\"A\",\"A\",\"A\",\"B\",\"B\",\"C\"), site.y=c(\"B\",\"C\",\"D\",\"C\",\"D\",\"D\"),Distanc
?as.dist() should help you, though it expects a matrix as input.
?as.dist()