Hi Jarrett,
(Cc to the list since I'm correcting some errors)
- Le 28 Oct 22, à 3:01, Jarrett Phillips a
écrit :
> Thanks Emmanuel,
> Sorry for the late reply.
> If I understand correctly, there are two options to get the intraspecific and
> interspecific distances from the pairwise
Hi Jarrett,
If you have a vector of species names (say 'taxa'), then:
o <- outer(taxa, taxa, "==")
returns a logical matrix with TRUE when the two strings in 'taxa' are the same,
FALSE if they are different (so the diagonal is TRUE). Since you return the
output of dist.dna() as a matrix, then
Hello,
I'm wondering whether someone knows of an efficient way to extract
intraspecific (within-species) and interspecific (between-species) genetic
distances for each species returned by ape::dist.dna() to be able to
calculate the DNA barcode gap.
It seems extracting the entire object as a