I am using the dist {stats}
function to calculate the distance between points, my problem is that I have 24469 points, and the output for the dist function gives me a vector with 18705786 length, instead of the matrix. I tried already to export as.matrix
, but the file is 2 large.
How can I have access to what points corresponds each distance?
For example which(distance<=700)
gives me the position in the vector, but how can I get the info to what points this distance corresponds to?