scale10: Scale environmental gradient to 0-10

Description Usage Arguments Details Value Examples

Description

scale10 scales an environmental gradient to the range 0-10. Optionally, it can invert the scale. This is essential for use with est_brc.

Usage

1
scale10(env_grad, invert = FALSE)

Arguments

env_grad

numeric vector of environmental gradient scores, one for each site.

invert

logical indicating if env_grad should be inverted (default is FALSE).

Details

scale10 is used to scale an environmental gradient for use in generating Biotic Response Curves with est_brc. The reference gradient returned by scale10 has minimum 0 and maximum 10. If the input environmental gradient has larger values for less desirable sites, use invert = TRUE to invert the gradient so that 10 represents the most desirable condition.

Value

A numeric vector with env_grad scaled to 0-10.

Examples

1
2
grad <- runif(10)
scale10(grad, TRUE)

ngwalton/iec documentation built on May 23, 2019, 4:43 p.m.