cells_away: Generate cell ids for sampling movement to

Description Usage Arguments Value

View source: R/move_prob.R

Description

Generate cell ids for sampling movement to

Usage

1
cells_away(x0, y0, dist_m, res_m, ncols, nrows, x_topl, y_topl, ncells)

Arguments

res_m

numeric, the grid cell resolution in meters

ncols

numeric, the number of columns in the grid

nrows

numeric, the number of rows in the grid

x_topl

numeric, the top left x coordinate of the grid on which movement is being simulated

y_topl

numeric, the top left y coordinate of the grid on which movement is being simulated

ncells

numeric, the number of total cells (ncol * nrow)

Value

a list of the candidate cell_ids and the x and y coords of the movement


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.