datatreat: Organizes pedigree data in a chronological way
Description
This function organizes pedigree data in a chronological way and return 3 lists: i) parental 1 values (numeric); ii) parental 2 values (numeric); iii) real names of the individuals. Also save a .txt file with new pedigree file.
Usage
datatreat(data = NULL, n.max = 50, unk = 0, save = FALSE)
Value
list with parental 1, parental 2, and real names of the individuals (key) also saves a txt file with the new chronological pedigree.
Arguments
- data
name of the pedigree data frame. Default=NULL.
- n.max
max number of iteractions to get the chronological order. Default = 50
- unk
the code of the data missing. Default=0.
- save
if TRUE, save the genealogy in a .txt file
Examples
Run this codedata(ped.mrode)
datatreat(ped.mrode)
Run the code above in your browser using DataLab