Description Usage Arguments Value Examples
View source: R/disturb_internal.R
Determine if a disturbance occurred and reduce population abundances in a time step.
1 2 3 4 5 6 7 | disturb_internal(
N,
disturb_type,
disturb_p,
disturb_value,
river_network_structure
)
|
N |
Abundance matrix with |
disturb_type |
Character vector of one of |
disturb_p |
probability of disturbance occurring. If |
disturb_value |
Vector of numbers from 0 to 1 describing the magnitude of disturbance |
List with two elements. N
= abundance matrix after accounting for disturbances. Values don't necessarily have to be integers. Numeric-double values will be converted to integer with rpois()
in the simulation function. patch_extinction
is an integer vector of length = n_patch
indicating if a disturbance did happen (1) or did not happen (0).
1 | disturb_internal(N, disturb_type, disturb_p, disturb_value, river_network_structure)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.