optima {analogue} | R Documentation |
Computes weighted average optima and tolerance ranges from species abundances and values of the environment.
optima(x, ...) ## Default S3 method: optima(x, env, ...) tolerance(x, ...) ## Default S3 method: tolerance(x, env, useN2 = TRUE, ...)
x |
Species data matrix or data frame. |
env |
Numeric; variable for which optima or tolerances are required. |
useN2 |
logical; should Hill's N2 values be used to produce un-biased tolerances? |
... |
Arguments passed to other methods. |
Both functions return a named vector containing the WA optima or
tolerances for the environmental gradient specified by env
.
Gavin L. Simpson
TO DO
## Load the Imbrie & Kipp data and ## summer sea-surface temperatures data(ImbrieKipp) data(SumSST) ## WA optima optima(ImbrieKipp, SumSST) ## WA tolerances tolerance(ImbrieKipp, SumSST, useN2 = TRUE)