Forward-in-Time Simulation and Tallying of Pairwise Relationships
convert an ancestry-matching matrix to a ggplot-able tibble
Return ancestry-matrix-zone masks for different relationship types
Return a string of ancestor abbreviations in the order of the ancestor...
Function to make a vector of all the ancestors of an individual out to...
here is a function to plot a basic ancestry match matrix
Categorize the dominant relationship from an ancestry match matrix
compile pairwise relationships from the samples
Count up the number of different kinds of related pairs and make a plo...
Count and plot the number of mates each individuals has produced offsp...
downsample the number of individuals sampled
Find ancestors and relative of each sampled member of a pedigree
Add bands of transparent colors to denote generations on plots of ance...
Add perimeters around the relationship zones
Just a simple plot function
Download the spip binary and install it where CKMRpop expects it
Exponentiation function for integer arguments
Return a Leslie-like matrix from the spip parameters
Pipe operator
plot an ancestry matrix (or multiple such matrices) from its (their) m...
plot the graph showing the connected components
Prepare input for the DFS relative-finding algorithm
Return a list of the indices of the primary shared ancestors
function to test and use DFS stuff
Return the recaptures from amongst the samples
Return the perimeters of all the relationship zones
Find connected components amongst the related pairs
Run spip in a user-specified directory
Depth first search down the pedigree to N generations.
Depth first search up the pedigree to N generations.
Read in the pedigree, census, and sampling information from the spip r...
file path to be used in a call to spip
return the path where spip should be in the R system paths
return TRUE if spip exists where it should be installed.
print the abbreviated usage information from spip
print the full usage information from spip
Summarize the distribution of number of offspring and number of mates
Summarize annual sex-and-age-specific survival rates from the census i...
Summarise kin-pair information and use it to create uncooked spaghetti...
Provides an R wrapper around the program 'spip' (<https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1471-8286.2005.00884.x>), a C program for the simulation of pedigrees within age-structured populations with user-specified life histories. Also includes a variety of functions to parse 'spip' output to compile information about related pairs amongst simulated, sampled individuals, to assess the feasibility and potential accuracy of close-kin mark-recapture (CKMR). Full documentation and vignettes are mirrored at <https://eriqande.github.io/CKMRpop/index.html> and can be read online there.