| genind constructor {adegenet} | R Documentation |
Constructor for genind objects.
The function genind creates a genind object from
a matrix of allelic frequency where genotypes are in rows and alleles
in columns. This table must have correct names for rows and
columns.
The function as.genind is an alias for genind function.
is.genind tests if an object is a valid genind object.
Note: to get the manpage about genind, please type 'class ? genind'.
genind(tab,pop=NULL,prevcall=NULL) as.genind(tab,pop=NULL,prevcall=NULL) is.genind(x)
tab |
a individuals x alleles matrix of genotypes coded as allelic frequencies, i.e. like in a genind object |
pop |
a factor giving the population of each genotype in 'x' |
prevcall |
call of an object |
x |
an object |
For genind and as.genind, a genind object. For is.genind, a logical.
Thibaut Jombart jombart@biomserv.univ-lyon1.fr
"genind", and import2genind for
importing from various types of file.
data(nancycats) nancycats@loc.names # isolate one marker, fca23 obj <- seploc(nancycats)$"fca23" obj