knitr::opts_chunk$set( fig.align = 'center', collapse = TRUE, comment = "#>", fig.path = "man/figures/README-")
CKMRpop is an R package for forward-in-time simulation and tabulation of pairwise
relationships in age-structured populations. It provides a wrapper for running the
compiled C-program spip
[@anderson2005spip],
which simulates an age-structured population forward in time.
The output of spip
is processed by functions in CKMRpop and used to identify related pairs of
individuals in samples taken
from the simulated population.
To install CKMRpop from GitHub, first do this:
remotes::install_github("eriqande/CKMRpop")
Installing this requires that you have your build environment set up for compiling RCpp code.
After it is installed, load the library and download and install the spip binary appropriate for your system (Mac, Linux, and Windows currently supported).
library(CKMRpop) install_spip(Dir = system.file(package = "CKMRpop"))
The following shows an example of the use of CKMRpop for an example life history.
The package documentation and vignettes are available in pkgdown format at https://eriqande.github.io/CKMRpop/
The first vignette in the package demonstrates the use of most of the functionality in the package in the context of simulation of the life history of "Species 1" which looks like a fish that can be sampled at relatively early life stages. It can be found in the "articles" tab on package website, or you can go directly to it here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.