Description Usage Arguments Value
View source: R/move_continuous.R
Simulates individual movements
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | move_continuous(
dist_m,
angle,
x0,
y0,
x_topl,
y_topl,
res_m,
ncols,
nrows,
ncells,
cells_block,
cells_out_bounds,
path
)
|
dist_m |
numeric vector or value, distance to move |
angle |
numeric vector 0, 360 or value, angle at which to move at |
x0 |
numeric vector or value, the x origin of the infected individual |
y0 |
numeric vector or value, the y origin of the infected individual |
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 |
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 |
ncells |
numeric, the number of total cells (ncol * nrow) |
cells_block |
integer vector, the cell ids of grid cells where movements are invalid to, for use with max_tries @param cells_out_bounds integer vector, the cell ids of grid cells which are outside the bounds/ not covered by the area being simulated |
path |
integer vector or value, if sequential is FALSE then 0, if TRUE then the path id (i.e. which step in the series of movements) to pass through and assign to exposed |
a list with the resulting x and y coordinates, cell ids, whether the movement was to a invalid cell, whether the movement fell within the bounds of the simulation, and the path id for the exposed (can either be length 1 or length of dist_m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.