loci_to_genind: Convert a loci object into a genind object

View source: R/loci_to_genind.R

loci_to_genindR Documentation

Convert a loci object into a genind object

Description

This function is exactly the same as loci2genind from pegas package

Usage

loci_to_genind(x, ploidy = 2, na.alleles = c("NA"))

Arguments

x

An object of class loci to convert

ploidy

An integer indicating the ploidy level (by default, 'ploidy = 2')

na.alleles

A character vector indicating the coding of the alleles to be treated as missing data (by default, 'na.alleles = c("NA")')

Value

An object of class genind

Author(s)

P. Savary

Examples

data("data_ex_loci")
genind <- loci_to_genind(data_ex_loci, ploidy = 2, na.alleles = "NA")

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.