Description Usage Arguments Value Examples
View source: R/generate_preds_and_encs.R
Probability that prey encounters a predator in each cell based on the idea that each predator will engage prey within a certain radius total area occupied by predators divided by cell area is the encounter probability
1 | calc_enc_probs(df, grid_size = 15, reaction_dis = 0.5)
|
df |
dataframe of predator counts per cell; use output from create_stream_raster_frame function |
grid_size |
length of side of raster grid in meters; default is 15 |
reaction_dis |
maximum distance (in m) away from a predator that can trigger an encounter; default is 0.50 |
a dataframe of encounter probabilities per grid cell for the entire reach
1 2 3 | pred_pos <- get_pred_positions()
raster <- create_stream_raster_frame(pred_pos)
calc_enc_probs(raster)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.