powered by
This function is exactly the same as loci2genind from pegas package
loci2genind
loci_to_genind(x, ploidy = 2, na.alleles = c("NA"))
An object of class genind
genind
An object of class loci to convert
loci
An integer indicating the ploidy level (by default, 'ploidy = 2')
A character vector indicating the coding of the alleles to be treated as missing data (by default, 'na.alleles = c("NA")')
P. Savary
data("data_ex_loci") genind <- loci_to_genind(data_ex_loci, ploidy = 2, na.alleles = "NA")
Run the code above in your browser using DataLab