numPed: Creates a numeric form of a pedigree

Description Usage Arguments Details Value See Also

Description

This function takes a pedigree and converts it into a standard integer form used by many functions in the 'nadiv' package.

Usage

1
numPed(pedigree)

Arguments

pedigree

A three column pedigree object, where the columns correspond to: ID, Dam, & Sire

Details

Missing parents (e.g., base population) should be denoted by either 'NA' or '0'.

Individuals must appear in the ID column in rows preceeding where they appear in either the Dam or Sire column.

Based on code from the MCMCglmm package

Value

The pedigree, where individuals are now numbered from 1 to n and unknown parents are assigned a value of '-998'.

See Also

MCMCglmm



Search within the nadiv package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.