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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…