calculate_path_length: Number of Cells Traversed

Description Usage Arguments Value Examples

View source: R/prey_survival_simulation.R

Description

Calculates the number of grid cells each fish traverses in the environment. Assumes fish take the shortest path possible through the environment (i.e., in a straight line from left to right)

Usage

1
calculate_path_length(transect_length = 1000, n_transects = 20, grid_size = 15)

Arguments

transect_length

length of each transect in meters; default is 1000

n_transects

integer of transects in the model; default is 20

grid_size

length of side of raster grid in meters; default is 15

Value

integer value of cells traversed

Examples

1
2
calculate_path_length(n_transects = 5)
calculate_path_length(n_transects = 20)

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