seedProdBasicGRASS: basic seed production based on age

Description Usage Arguments Details Value Author(s)

View source: R/seedProdBasicGRASS.R

Description

Calculating seed production based on provided function

Usage

1
2
  seedProdBasicGRASS(age, inds, output,
    seedProdPerIndFunction, initial=FALSE, overwrite=FALSE)

Arguments

age

raster layer containing the age of the species in each cell

inds

raster layer containing the number of individuals per cell

output

name of the output raster layer which will containing the number of newly produced seeds

seedProdPerIndFunction

function used to calculate the number of seeds based on the age in each cell

initial

logical specifying if the seed production is initial, i.e. accumulative over their life time

overwrite

logical if TRUE, output will be overwritten if it exists

Details

Calculate seed production per cell based on the age and number of individuals per cell by using a user specified R function. Input and output is from GRASS raster layers.

If initial == TRUE, the seed production over the lifetime of the plant will be returned.

The function seedProdPerInd has to have the following form:

seedProdPerInd <- function(age){...}

where

age is the age of the plant and the function returns the nomber of seeds produced.

The MASK in GRASS is not respected.

Value

invisibly returns name of output layer

Author(s)

Rainer M Krug <[email protected]>


rkrug/seedProd documentation built on May 25, 2017, 4:14 a.m.