Learn R Programming

briskaR (version 1.0.4)

create_pollen_sources: Pollen sources emission simulation

Description

Simulate pollen sources emission for maize crop. The proportion of plants emitting pollen per day (during 12 days) was observed by Fr<U+00E9>d<U+00E9>rique Angevin (Angevin et al. 2008).

Usage

create_pollen_sources(
  sf,
  timeline = 1:61,
  density = runif(1, 7, 11),
  pollen = rgamma(1, shape = 1.6, scale = 1/(2 * 10^-7))
)

create.pollen.sources()

Arguments

sf

A sf object defining sources fields

timeline

Vector of interger. Time units (e.g. days) including the pollen emission (for simulation, default is time.max). Minimal value is a vector of 12 days.

density

Plant density (number of plant by squared meter)

pollen

Pollen production (number of grains by plant)

Value

A matrix indexed by sources ID (in rows) and by time ( in columns) whose rows give the values of pollen emission (number of grains) for every source.