magic.ped: Convert a "cross.info" object into a pedigree.

View source: R/magic_ped.R

magic.pedR Documentation

Convert a "cross.info" object into a pedigree.

Description

This function takes the "cross.info" object and converts it into a pedigree that has 4 columns: individual ID, parent 1 ID, parent 2 ID and generation number.

Usage

magic.ped(xinfo)

Arguments

xinfo

an object of "cross.info" class.

Value

a pedigree.

Examples


mpop <- magic.partial(n=8, m=1, balanced=TRUE)
mped <- magic.ped(xinfo=mpop)



cjyang-sruc/magicdesign documentation built on March 19, 2022, 9:34 a.m.