Learn R Programming

poppr (version 2.1.1)

as.genclone: Switch between genind and genclone objects.

Description

as.genclone will create a genclone object from a genind object OR anything that can be passed to the genind initializer.

Usage

as.genclone(x, ..., mlg, mlgclass = TRUE)

genclone2genind(x)

Arguments

x
a genind or genclone object
...
arguments passed on to the genind constructor
mlg
an optional vector of multilocus genotypes as integers
mlgclass
should the mlg slot be of class MLG?

Details

genclone2genind will remove the mlg slot from the genclone object, creating a genind object.

See Also

splitStrata, genclone, read.genalex

Examples

Run this code
data(Aeut)
Aeut
Aeut.gc <- as.genclone(Aeut)
Aeut.gc
Aeut.gi <- genclone2genind(Aeut.gc)
Aeut.gi

Run the code above in your browser using DataLab