
dcCA.r - function to compute dc-CA using SVD

dc-CAalgorithms.R - code illustrating the equations in the paper

dcCA_examples1_sim.R - code for the simulation study in the paper and illustration of  how to use thedcCA function

doublerda.R - used in dc-CAalgorithms.R, code by Stphan Dray from Kleyer et al. 2012 to               perform dc-CA/double CCA  

te_score_functions1.r  - utility functions for the simulation 
# trait-environment functions as in ter Braak (2017) Supplementary material 4:         10651-2017-368_MOESM4_ESM.zip
#https://link.springer.com/article/10.1007%2Fs10651-017-0368-0#SupplementaryMaterial

generate_trait_env_community_data_loglinear.r - functions to simulate the data of the simulation study  
#  as in ter Braak (2017) Supplementary material 4:  10651-2017-368_MOESM4_ESM.zip
#https://link.springer.com/article/10.1007%2Fs10651-017-0368-0#SupplementaryMaterial
