knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of primer is to .maintain functions used in [Primer of Ecology Using R] (https://hankstevens.github.io/Primer-of-Ecology/)
You can install the released version of primer from CRAN with:
install.packages("primer")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("HankStevens/primer")
Stochastic density-independent population dynamics.
library(primer) # random finite rates of increase lambdas <- runif(10, .5, 1.5) # stochastic dynamics out <- PopSim(Rs=lambdas, years=50, N0=50) matplot(0:50, out, type='l') # distribution of final population sizes summary(out[51,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.