selPopSize | R Documentation |
The function selPopSize
checks the sample size of each population in
a genind object and keeps only genotypes of populations
having a given minimum size.
## S4 method for signature 'genind'
selPopSize(x,pop=NULL,nMin=10)
x |
a genind object |
pop |
a vector of characters or a factor giving the population of each genotype in 'x'. If not provided, seeked from x$pop. |
nMin |
the minimum sample size for a population to be
retained. Samples sizes strictly less than |
A genind object.
Thibaut Jombart t.jombart@imperial.ac.uk
seploc
, repool
## Not run:
data(microbov)
table(pop(microbov))
obj <- selPopSize(microbov, n=50)
obj
table(pop(obj))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.