as.genind.DNAbin {mmod} | R Documentation |
as.genind.DNAbin
Description
Convert a DNAbin object into a genind object
Usage
as.genind.DNAbin(x, pops)
Arguments
x |
object of class DNAbin |
pops |
vector of population assignemnts for each sequence |
Value
genind
Examples
library(pegas)
data(woodmouse)
wm <- as.genind.DNAbin(woodmouse, rep(c("A", "B", "C"), each=5))
diff_stats(wm)
[Package mmod version 1.3.3 Index]