[R] for loop question Documentation and its application for calculating euclidean distance on MDS ordination axis scores

Ben Bolker bolker at ufl.edu
Wed Oct 1 15:58:23 CEST 2008


> I will post data probably tonight, but here is my problem.  I have
> preformed an MDS on a set of data.  I have the scores of the four axes
> that
> are the optimal solution.  I want to calculate the euclidean distance
> between time steps of the ordination.  

  See ?dist  for a much faster solution ...

  [saying a little more to make Gmane happy]
  I wouldn't say for loops are "discouraged", but there are
often faster ways to do things in R.

 Ben Bolker



More information about the R-help mailing list