Description Usage Arguments Value Author(s) Examples
Create a new dataset with specified populations or exclude specified populations from the dataset.
1 2 3 4 5 6 7 8 |
gid |
a |
sublist |
a |
exclude |
a |
blacklist |
DEPRECATED, use exclude. |
mat |
a |
drop |
|
A genind
object or a matrix.
Zhian N. Kamvar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Load the dataset microbov.
data(microbov)
# List the population names.
popNames(microbov)
# Analyze only the populations with exactly 50 individuals
mic.50 <- popsub(microbov, sublist=c(1:6, 11:15), exclude=c(3,4,13,14))
## Not run:
# Analyze the first 10 populations, except for "Bazadais"
mic.10 <- popsub(microbov, sublist=1:10, exclude="Bazadais")
# Take out the two smallest populations
micbig <- popsub(microbov, exclude=c("NDama", "Montbeliard"))
# Analyze the two largest populations
miclrg <- popsub(microbov, sublist=c("BlondeAquitaine", "Charolais"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.