Environmental Limits: R Script

We can use a for loop
similar to that used for weighted averages to compute environmental limits
(Equation 2)
for different taxa. In this method, you must select a value
of the cumulative percentile that you wish to use for computing the
environmental limit. In the script below, the cutoff value
is selected to
be 0.75.