Re: [R-sig-phylo] Generating a matrix of interspecfic genetic distances

2023-02-05 Thread Viechtbauer, Wolfgang (NP)
unday, 05 February, 2023 18:30 >To: Viechtbauer, Wolfgang (NP) >Subject: Re: [R-sig-phylo] Generating a matrix of interspecfic genetic >distances > >Thanks Wolfgang, > >‘dists’ contains both intraspecific and interspecific comparisons. The ‘inter’ >variable extracts

Re: [R-sig-phylo] Generating a matrix of interspecfic genetic distances

2023-02-05 Thread Viechtbauer, Wolfgang (NP)
Dear Jarrett, I am not sure what it is that you are trying to accomplish with the last two lines. Isn't 'dists' already what you want? If you just want to set the diagonal of 'dists' to NA, then 'diag(dists) <- NA' would do that. But maybe I am missing the point here entirely. Best, Wolfgang