sim2genind: Converting a hybridsim object to a genind object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sim2genind.R

Description

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

Usage

1

Arguments

x

a hybridsim object

Value

A genind object

Author(s)

F. Balao fbalao@us.es, J.L. García-Castaño

See Also

genind df2genind

Examples

1
2
3
4
5
## simulate F1 hybrids
F1hybrids<-hybridsim(Nmarker=100,Na=100,Nb=100,Nf1=30, type="neutral", hybrid="F1")

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

AFLPsim documentation built on May 29, 2017, 11:31 a.m.