title: Mantel Test in R
body: <p>I am trying to run a <strong>Mantel</strong> test in <strong>R</strong> on two distances (<em>Geographic Distances and Genetic Distancse</em>). </p>
  
  <p>The data is saved in an <strong>Excel</strong> file as 2 columns; each row has the geographic distance and genetic distance between 2 populations. </p>
  
  <p>I am running the following command which returns to be wrong for some reason</p>
  
  <pre><code>mantel.rtest(mydata$Dis, mydata$Fst, nrepet = 99)
  </code></pre>
  
  <p>the error message is as follow:</p>
  
  <pre><code>Error in mantel.rtest(mydata$Time, mydata$Fst, nrepet = 99) : 
    Object of class 'dist' expected
  </code></pre>
  
  <p>would appreciate any feedback.</p>