powered by
Solves for the shortest-path step-across distance for a given distance matrix
stepdist(dis,alpha)
an object of class ‘dist’
a distance or dissimilarity object of class ‘dist’
a threshold distance to establish the step-across
David W. Roberts droberts@montana.edu
The function takes the dist object and converts all values >= alpha to 9999.9 and then solves for new distances by calculating the transitive closure of the triangle inequality.
data(bryceveg) dis.bc <- dsvdis(bryceveg,'bray') dis.bcx <- stepdist(dis.bc,1.00) disana(dis.bcx)
Run the code above in your browser using DataLab