R/data.R

#' A large pedigree with big family sizes
#'
#' A dataset containing a pedigree with many full-sib individuals per family.
#'
#' @format A data.table with 8 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#'   \item{Sex}{Sex of the individual}
#'   \item{Year}{Year of birth}
#'   \item{IndNum}{Numeric ID for individual}
#'   \item{SireNum}{Numeric ID for sire}
#'   \item{DamNum}{Numeric ID for dam}
#' }
"big_family_size_ped"

#' A deep pedigree
#'
#' A dataset containing a pedigree with many generations.
#'
#' @format A data.table with 4 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#'   \item{Sex}{Sex of the individual}
#' }
"deep_ped"

#' A pedigree with loops
#'
#' A dataset containing a pedigree with circular mating loops.
#'
#' @format A data.table with 3 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#' }
"loop_ped"

#' A simple pedigree
#'
#' A small dataset containing a simple pedigree for demonstration.
#'
#' @format A data.table with 4 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#'   \item{Sex}{Sex of the individual}
#' }
"simple_ped"

#' A small pedigree
#'
#' A small dataset containing a pedigree with some missing parents.
#'
#' @format A data.frame with 3 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#' }
"small_ped"

#' A highly inbred pedigree
#'
#' A simulated pedigree designed to demonstrate high levels of inbreeding and partial inbreeding decomposition.
#' Contains full-sib mating and backcrossing.
#'
#' @format A data.table with 5 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#'   \item{Sex}{Sex of the individual}
#'   \item{Gen}{Generation number}
#' }
"inbred_ped"

#' A pedigree with half founders
#'
#' A dataset from ENDOG containing individuals with a single missing parent (half founders).
#' Useful for testing genetic algorithms correctly conserving probability mass for missing lineages.
#'
#' @format A data.frame with 4 columns:
#' \describe{
#'   \item{Ind}{Individual ID}
#'   \item{Sire}{Sire ID}
#'   \item{Dam}{Dam ID}
#'   \item{Sex}{Sex of the individual}
#' }
"half_founder_ped"

#' A complex pedigree
#'
#' A dataset containing a large, complex pedigree covering about 100 generations,
#' useful for testing the performance and accuracy of partial inbreeding and similar calculations.
#'
#' @format A data.table with a standard pedigree structure.
"complex_ped"

Try the visPedigree package in your browser

Any scripts or data that you put into this service are public.

visPedigree documentation built on March 30, 2026, 9:07 a.m.