pop_init: Initialize populations randomly

Description Usage Arguments Value

View source: R/fn_aux.R

Description

Initialize populations randomly with populated cells containing adults at 50 K and juveniles at 10

Usage

1
pop_init(ngrid, g.p, lc.df, p.0 = NULL, N.0 = NULL)

Arguments

ngrid

Number of grid cells in entire map

g.p

Named list of global parameters

lc.df

Dataframe or tibble with xy coords, land cover proportions, and cell id info

p.0

NULL Cell IDs with populations at t=0

N.0

NULL Initial adult abundance in cell

Value

Matrix or array of initial abundances with dim=c(ngrid, (n.lc), m.max)


Sz-Tim/gbPopMod documentation built on Dec. 7, 2020, 1:07 p.m.