init_position: Generates random 'starting' positions for adult agents. Uses...

Description Usage Arguments Value

View source: R/calculations.R

Description

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.

Usage

1
init_position(boundaryDat, N, grid.df)

Arguments

boundaryDat

Geographic boundary of simulation region.

N

Number of agents.

Value

A data frame of lat and long positions for each adult agent.


beeysian/cairnsmozzie documentation built on Feb. 15, 2021, 12:12 a.m.