# NOT RUN {
data(exdat)
sdat<-as(exdat$markers,"snp.matrix") #coerce to snp.matrix
#Write a post-MAKEPED pedigree file for unrelated subjects.
pedinf<-matrix(
c( 1, 1, 0, 0, 0, 0, 0, 1, 1,
2, 1, 0, 0, 0, 0, 0, 1, 1,
3, 1, 0, 0, 0, 0, 0, 1, 1,
4, 1, 0, 0, 0, 0, 0, 1, 1,
5, 1, 0, 0, 0, 0, 0, 1, 1),
byrow=TRUE, ncol=9, nrow=5)
write.pedfile(pedinf,sdat,file="test.ped")
#clean up
unlink("test.ped")
# }
Run the code above in your browser using DataLab