Description Usage Arguments Value Examples
Generate a discrete habitat suitability function given parameter windows and scores.
1 | make_hsd(expr, score)
|
expr |
List of expressions evaluating the value of a parameter |
score |
Vector of scores assigned when a given expression evaluates as
|
A function representing the habitat suitability index.
1 2 3 4 5 6 7 8 9 10 | windows = list(
optimal = expression(x >= 14 & x <= 18),
suitable = expression(x < 14 | (x >= 18 & x < 21)),
stressful = expression(x >= 21 & x <= 25),
unsuitable = expression(x > 25)
)
scores = c(3, 2, 1, 0)
make_hsd(windows, scores)
make_hsd(windows, names(windows))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.