Skip to content

reorder vegdist objects

1 message · Gian Maria Niccolò Benucci

#
Hello,

I have two vegan::vegdist objects I want to use into a vegan::mantel test.
However, rows and columns of the two objects are not in the same order. Is
there a way to reorder them one another?

For example,
Lycovolu  Hupeaust  Lycofast  Lycodeut
Hupeaust 0.9045557

Lycofast 0.6835441 0.8569781

Lycodeut 0.8036577 0.8294657 0.7958988   ...
...
Lycodeut   Lycofast   Lycoscar   Lycovolu
Lycofast 0.09340659

Lycoscar 0.08974359 0.01831502

Lycovolu 0.09073476 0.01099655 0.01008080   ...
...

Thanks,