genpop constructor {adegenet} | R Documentation |
Constructor for genpop objects.
The function genpop
creates a genpop object from
a matrix of alleles counts where genotypes are in rows and alleles
in columns. This table must have correct names for rows and
columns.
The function as.genpop
is an alias for genpop
function.
is.genpop
tests if an object is a valid genpop object.
Note: to get the manpage about genpop, please type 'class ? genpop'.
genpop(tab,prevcall=NULL) as.genpop(tab,prevcall=NULL) is.genpop(x)
tab |
a pop x alleles matrix which terms are numbers of alleles, i.e. like in a genpop object |
prevcall |
call of an object |
x |
an object |
For genpop
and as.genpop
, a genpop object. For is.genpop
, a logical.
Thibaut Jombart jombart@biomserv.univ-lyon1.fr
"genpop"
, and genind2genpop
for
conversion from a genind to a genpop object.
data(nancycats) obj <- genind2genpop(nancycats) # isolate one locus, fca77 obj <- seploc(obj)$"fca77" obj