genclone
or genind
object by populationpopsub(gid, sublist = "ALL", blacklist = NULL, mat = NULL, drop = TRUE)
genclone
or genind
object.vector
of population names or indexes that the user
wishes to keep. Default to "ALL".vector
of population names or indexes that the user
wishes to discard. Default to NULL
matrix
object produced by mlg.table
to be
subsetted. If this is present, the subsetted matrix will be returned instead
of the genind objectlogical
. If TRUE
, unvariate alleles will be dropped
from the population.genind
object or a matrix.# Load the dataset microbov.
data(microbov)
# Analyze only the populations with exactly 50 individuals
mic.50 <- popsub(microbov, sublist=c(1:6, 11:15), blacklist=c(3,4,13,14))
# Analyze the first 10 populations, except for "Bazadais"
mic.10 <- popsub(microbov, sublist=1:10, blacklist="Bazadais")
# Take out the two smallest populations
micbig <- popsub(microbov, blacklist=c("NDama", "Montbeliard"))
# Analyze the two largest populations
miclrg <- popsub(microbov, sublist=c("BlondeAquitaine", "Charolais"))
Run the code above in your browser using DataLab