Learn R Programming

IPMpack (version 2.1)

R0Calc: Calculates net reproductive rate (R0) from an IPM.

Description

Estimates lifetime reproductive success from a full IPM, including survival, growth and fecundity.

Usage

R0Calc(Pmatrix, Fmatrix)

Arguments

Pmatrix
a matrix (not necessarily of class IPMmatrix).
Fmatrix
a matrix (not necessarily of class IPMmatrix).

Value

numeric

References

Caswell, 2001. Matrix population models: analysis, construction and interpretation. 2nd ed. Sinauer. p126.

See Also

makeIPMPmatrix,makeIPMFmatrix

Examples

Run this code
dff <- generateData()
Pmatrix <- makeIPMPmatrix(minSize = min(dff$size, na.rm = TRUE),
maxSize = max(dff$size, na.rm = TRUE), growObj = makeGrowthObj(dff), 
survObj = makeSurvObj(dff), correction="constant")
Fmatrix <- makeIPMFmatrix(minSize = min(dff$size, na.rm = TRUE),
maxSize = max(dff$size, na.rm = TRUE), 
fecObj = makeFecObj(dff,Formula=fec~size), correction="constant")
R0Calc(Pmatrix, Fmatrix)

Run the code above in your browser using DataLab