
Standardize a site-by-species matrix by site (row-wise z) with optional robust SD
Source:R/standardise_by_site.R
standardise_by_site.RdFor each site (row), subtract the row-mean and divide by a row-scale. The scale can be classical SD or a robust max(MAD, SD) with a small floor.