calc_enc_probs: Encounter Probability

Description Usage Arguments Value Examples

View source: R/generate_preds_and_encs.R

Description

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

Usage

1
calc_enc_probs(df, grid_size = 15, reaction_dis = 0.5)

Arguments

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

Value

a dataframe of encounter probabilities per grid cell for the entire reach

Examples

1
2
3
pred_pos <- get_pred_positions()
raster <- create_stream_raster_frame(pred_pos)
calc_enc_probs(raster)

mrguyperson/predpackplus documentation built on Dec. 21, 2021, 10:08 p.m.