Displaying 1 result from an estimated 1 matches for "res_closest".
Did you mean:
r_closest
2011 Feb 10
0
loop problem
...hrough each island in this set of islands and get closest island, but
exclude islands already counted
for(k in 1:i){
closeout[i,1]=a[x[j,],is.finite(as.numeric(a[x[j,k],]))][1]
closeout[i,2]=a[x[j,k],is.finite(as.numeric(a[x[j,k],]))][1]
acopy[a==closeout[i,]]=NA
}
}
write.csv(closeout, paste('res_closest',i,sep='','.csv'))
}
#################
The data of which island is closer to which is:
a
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12
[1,] 8 2 4 9 13 3 11 12 10 5 6 7
[2,] 1 8 4 9 13 3 11 12 10 5 6 7
[3,] 13 11 9 12 5 10 4 6 7 8 1 2
[4,] 9 8 1...