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"),Distance=c(67,57,64,60,67,60))
I need to convert this to an object of class “dist” but I do not need to calculate a distance so therefore I cannon use the dist() function. Any advice?
I had a similar problem not to long ago and solved it like this: