Conversion function for SNP nucleotide genotype matrix to a genepop file.
This function converts SNP nucleotide genotype to genepop file format.
snp2gen(infile = NULL, prefix_length = 2)
infile |
A character string indicating the name of the text file containing SNP genotypes. |
prefix_length |
This argument specifies the population specific prefix within individual names. |
A genepop file written to disk as "snp2gen-converted.gen"
Kevin Keenan, 2014
## Not run: data(SNPs, package = "diveRsity") snp2gen(infile = SNPs, prefix_length = 2) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.