write a ped and a map file suitable for analysis with PLINK
write.ped(dat, ilab = NULL, pop = NULL,
fname = "dat",na.str="0",f.id=NULL,m.id=NULL,loc.pos=NULL,sex=NULL)
a hierfstat data frame. if pop=NULL, the first column should contain the population identifier, otherwise it contains genotypes at the first locus
individual labels
population id
filename for ped file
character string to use for missing values
father id. default to unknown
mother id. default to unknown
the loci position default to unknown
the individual sex. default to unknown
a map file containing the loci positions
a ped file containing genotypes etc...
Chang et al. (2015) Second-generation PLINK: rising to the challenge of larger and richer datasets