powered by
This function returns distances beteenw sorted points of 2-column matrix 'x'
.neigbDis(x, asSum = TRUE)
This function returns a numeric vector with distances
(matrix or data.frame, min 2 columns) main input
(logical) if TRUE (default) the sum of all distances will be returned, otherwise the individual distances
TRUE
daPa <- matrix(c(1:5,8,2:6,9), ncol=2) .neigbDis(daPa)
Run the code above in your browser using DataLab