Man pages for BGmisc
An R Package for Extended Behavior Genetics Analysis

addParentRowCreate a properly formatted parent row for the pedigree
addPersonToPedaddPersonToTree A function to add a new person to an existing...
addRowlessParentsAdd addRowlessParents
adjustKidsPerCoupleGenerate or Adjust Number of Kids per Couple Based on Mating...
applyTagMappingsApply Tag Mappings to a Line
ASOIAFA pedigree of ice and fire
assignCoupleIDsAssign Couple IDs
BGmisc-packageBGmisc: An R Package for Extended Behavior Genetics Analysis
buildBetweenGenerationsProcess Generation Connections
buildTreeGridParse Tree
buildWithinGenerationsProcess Generations for Pedigree Simulation
calcAllGenscalcAllGens A function to calculate the number of individuals...
calcFamilySizecalcFamilySize A function to calculate the total number of...
calcFamilySizeByGencalcFamilySizeByGen An internal supporting function for...
calculateCIsCalculate Confidence Intervals for Correlation Coefficients
calculateHFalconer's Formula
calculateRelatednessCalculate Relatedness Coefficient
calculateSummaryDTFunction to calculate summary statistics for all numeric...
checkIDsValidates and Optionally Repairs Unique IDs in a Pedigree...
checkIDuniquenessCheck for duplicated individual IDs
checkParentIDsValidates and Optionally Repairs Parent IDs in a Pedigree...
checkParentSexCheck Parental Role Sex Consistency
checkPedigreeNetworkValidate Pedigree Network Structure
checkSexValidates and Optionally Repairs Sex Coding in a Pedigree...
checkWithinRowDuplicatesCheck for within-row duplicates (self-parents, same mom/dad)
collapseNamescollapse Names
com2linksConvert Sparse Relationship Matrices to Kinship Links
combine_columnsCombine Columns
comp2vechcomp2vech Turn a variance component relatedness matrix into...
computeParentAdjacencyCompute Parent Adjacency Matrix with Multiple Approaches
convertGrid2LongTreeMake Long Tree
countPatternRowsCount GEDCOM Pattern Rows
createGenDataFrameCreate Data Frame for Generation
deduplicatePairsDeduplicate pairs of IDs in a data frame
determineSexDetermine Sex of Offspring
dot-assignParentValueAssign parent values based on component type
dot-collapseNames.legacycollapse Names
dot-com2links.legacyConvert Sparse Relationship Matrices to Kinship Links
dot-com2links.ogConvert Pedigree Matrices to Related Pairs File (Legacy)
dot-combine_columns.legacyCombine Columns
dot-computeTransposeCompute the transpose multiplication for the relatedness...
dot-countPatternRows.legacyCheck for Pattern Rows
dot-extract_info.legacyExtract Information from Line
dot-fisherzFisher's r to z transformation and back
dot-fisherz2rFisher's r to z transformation and back
dot-getModalValueGet the Modal Value of a Vector
dot-loadOrComputeInverseDiagonalLoad or compute the inverse diagonal matrix
dot-loadOrComputeIsChildLoad or compute the isChild matrix
dot-loadOrComputeIsParLoad or compute the isPar matrix
dot-loadOrComputeParListparent-child adjacency data
dot-mapFAMC2parents.legacyAssign momID and dadID based on family mapping
dot-mapFAMS2parents.legacyCreate a mapping of family IDs to parent IDs
dot-postProcessGedcom.legacyPost-process GEDCOM Data Frame
dot-processParents.legacyProcess parents information
dot-process_tag.legacyProcess a GEDCOM Tag
dot-readGedcom.legacyRead a GEDCOM File
dropLinkdropLink A function to drop a person from his/her parents in...
efuncError Function
extract_infoExtract Information from Line
extractMemberTableMatch Members
findBiggestThis function finds the biggest families in a pedigree. It is...
findFounderFunction to find the originating member for each line
findOldestThis function finds the oldest families in a pedigree. It is...
fitComponentModelfitComponentModel Fit the estimated variance components of a...
getGridNeighborsBuild adjacency list (4-way neighbors)
getWikiTreeSummaryExtract Summary Text
hazardSimulated pedigree with two extended families and an...
identifyComponentModelidentifyComponentModel Determine if a variance components...
inbreedingArtificial pedigree data on eight families with inbreeding
inferRelatednessInfer Relatedness Coefficient
initializeCheckpointInitialize checkpoint files
initialize_empty_dfinitialize_empty_df
initializeRecordInitialize an Empty Individual Record
insertEvenevenInsert A function to insert m elements evenly into a...
isChildDetermine isChild Status, isChild is the 'S' matrix from RAM
loadOrComputeCheckpointLoad or compute a checkpoint
makeInbreedingmakeInbreeding A function to create inbred mates in the...
makeTwinsmakeTwins A function to impute twins in the simulated...
mapFAMC2parentsAssign momID and dadID based on family mapping
mapFAMS2parentsCreate a Mapping from Family IDs to Parent IDs
markPotentialChildrenMark and Assign children
NullCompute the null space of a matrix
null2NAnullToNA
parseIndividualBlockParse a GEDCOM Individual Block
parseNameLineParse a Full Name Line
parseTreeRelationshipsinfer relationship from tree template
ped2addTake a pedigree and turn it into an additive genetics...
ped2ceTake a pedigree and turn it into an extended environmental...
ped2cnTake a pedigree and turn it into a common nuclear...
ped2comTake a pedigree and turn it into a relatedness matrix
ped2famSegment Pedigree into Extended Families
ped2graphTurn a pedigree into a graph
ped2maternalAdd a maternal line ID variable to a pedigree
ped2mitTake a pedigree and turn it into a mitochondrial relatedness...
ped2paternalAdd a paternal line ID variable to a pedigree
populateParentsAssign Parent
postProcessGedcomPost-process GEDCOM Data Frame
potterFictional pedigree data on a wizarding family
processEventLineProcess Event Lines (Birth or Death)
process_oneConvert Sparse Relationship Matrices to Kinship Links for one...
processParentsProcess Parents Information from GEDCOM Data
process_tagProcess a GEDCOM Tag
readGedcomRead a GEDCOM File
readWikifamilytreeRead Wiki Family Tree
recodeSexRecodes Sex Variable in a Pedigree Dataframe
repairIDsRepair Missing IDs
repairParentIDsRepair Parent IDs
repairSexRepairs Sex Coding in a Pedigree Dataframe
resampleResample Elements of a Vector
rmvnrmvn
royal92Royal pedigree data from 1992
simulatePedigreeSimulate Pedigrees This function simulates "balanced"...
splitIndividualsSplit GEDCOM Lines into Individual Blocks
standardizeColnamesStandardize Column Names in a Dataframe (Internal)
summarizeFamiliesSummarize the families in a pedigree
summarizeFounderFunction to summarize the originating members for each line
summarizeMatrilinesSummarize the maternal lines in a pedigree
summarizePatrilinesSummarize the paternal lines in a pedigree
summarizePedigreesSummarize Pedigree Data
traceTreePathsTrace paths between individuals in a family tree grid
tryNAmodified tryCatch function
validate_and_convert_matrixvalidate_and_convert_matrix
vechvech Create the half-vectorization of a matrix
BGmisc documentation built on June 11, 2025, 1:07 a.m.