mc.ped: Pedigree format transformation

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function changes Pedigree format from asreml to MCMCglmm, when the pedigree file without parents details.

Usage

1
mc.ped(ped)

Arguments

ped

Pedigree file from asreml format data.

Value

ped

Pedigree file without parents details

Author(s)

Yuanzhen Lin <yzhlinscau@163.com>

References

Yuanzhen Lin. R & ASReml-R Statistics. China Forestry Publishing House. 2016

See Also

Website for instant update: yzhlin-asreml.ys168.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(AAfun)
data(PrSpa)
df<-PrSpa

### create an asreml-format pedigree
ped<-df[,c(1,4)]
names(ped)[2]<-"Mum"
ped$Dad<-NA

### transform to MCMCglmm-format pedigree
ped2<-mc.ped(ped)

yzhlinscau/AAfun documentation built on May 21, 2020, 2:19 p.m.