Learn R Programming

poppr (version 1.1.5)

as.genclone: Create a genclone object from a genind object.

Description

Wrapper for genclone initializer.

Usage

as.genclone(x, hierarchy = NULL)

Arguments

x
a genind or genclone object
hierarchy
a data frame representing the population hierarchy.

See Also

splithierarchy, genclone, read.genalex

Examples

Run this code
data(Aeut)
Aeut
Aeut.gc <- as.genclone(Aeut)
Aeut.gc
Aeut.gc <- as.genclone(Aeut, other(Aeut)$population_hierarchy[-1])
Aeut.gc

Run the code above in your browser using DataLab