as.genind.DNAbin

Usage

as.genind.DNAbin(x, pops)

Arguments

x
object of class DNAbin
pops
vector of population assignemnts for each sequence

Value

genind

Description

Convert a DNAbin object into a genind object

Examples

library(pegas) data(woodmouse) wm <- as.genind.DNAbin(woodmouse, rep(c("A", "B", "C"), each=5)) diff_stats(wm)
$per.locus Hs Ht Gst Gprime_st D L1 0.8888889 0.962963 0.07692308 1 1 $global Hs Ht Gst_est Gprime_st D_het D_mean 0.88888889 0.96296296 0.07692308 1.00000000 1.00000000 1.00000000