cwm function

Indicate site conditions with community weighted mean values of traits or with mode of gradient classes (sum of species amplitudes).