Description Usage Arguments Value
Generates random 'starting' positions for adult agents. Uses boundary data for simulation region. Draws a polygon from the boundary points given in boundaryDat and picks N randomly spaced points within it. Includes a boundary check: will keep drawing points until there are N in the region/polygon. Requires package 'sp' for Polygon object.
1 | init_position(boundaryDat, N, grid.df)
|
boundaryDat |
Geographic boundary of simulation region. |
N |
Number of agents. |
A data frame of lat and long positions for each adult agent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.