Learn R Programming

AFLPsim (version 0.4-2)

sim2genind: Converting a hybridsim object to a genind object

Description

The function sim2genind converts a hybridsim object into a genind object of the package adegenet. It is wrapper of the function df2genind

Usage

sim2genind(x)

Arguments

x
a hybridsim object

Value

encoding

latin1

See Also

genind df2genind

Examples

Run this code
## simulate F1 hybrids
F1hybrids<-hybridsim(Nmarker=100,Na=100,Nb=100,Nf1=30, type="neutral", hybrid="F1")

## convert to genind object
F1gen<-sim2genind(F1hybrids)

Run the code above in your browser using DataLab