Compared to CA or PCoA, the code above is rather straightforward. But nothing
prevents you from trying to program another method. You can also display the
code of the CA.newr() and pcoa() functions and interpret it with the manual
in hand.
5.7 Hand-Written PCA Ordination Function
201