coord2dist(file=NULL, coordmatrix=NULL, cut=NULL,
file.format="degminsec",
output.dist=FALSE, radius=6378.137,
fp=1/298.257223563, neighbors=FALSE)file.format. One of file and coordmatrix
needs to be specified (if coordfile.format. One of file and
coordmatrix needs to be specified.neighbors==TRUE; see
neighbors."degminsec", "decimal2" or
"decimal4". The format of the required file or
coordmatrix consists of the following columns:
[object Object],[object Object],[object Object]TRUE, the resulting distance
matrix is given out as a dist object.TRUE, a neighborhood list is also
computed, listing for every location all locations with distance
<=cut< code=""> as neighbors.=cut<>neighbors==TRUE, a
list with componentsoutput.dist above. This is in km by default; the measurement
unit is determined by the value used for radius.neighbors.neighbors==FALSE, only the distance matrix.geo2neighbordata(veronica)
coord2dist(coordmatrix=veronica.coord[1:20,], cut=20, file.format="decimal2",neighbors=TRUE)Run the code above in your browser using DataLab