ia(pop, sample = 0, method = 1, quiet = FALSE, missing = "ignore",
hist = TRUE)genind object OR any fstat,
structure, genetix, genpop, or genalex formatted files.shufflepop for
details. TRUE prints nothing.
FALSE (defualt) will print the population name and
progress bar.
missingno for details.logical if TRUE, a histogram
will be printed for each population if there is
sampling.A named number vector of length 2 giving the Index of Association, "Ia"; and the Standardized Index of Association, "rbarD"
If there is sampling:
A a named number vector of length 4 with the following values:
A.H.D. Brown, M.W. Feldman, and E. Nevo. Multilocus structure of natural populations of hordeum spontaneum. Genetics, 96(2):523-536, 1980.
J M Smith, N H Smith, M O'Rourke, and B G Spratt. How clonal are bacteria? Proceedings of the National Academy of Sciences, 90(10):4384-4388, 1993.
poppr, missingno,
import2genind, read.genalex,
clonecorrectdata(nancycats)
ia(nancycats)
# Get the index for each population.
lapply(seppop(nancycats), ia)
# With sampling
lapply(seppop(nancycats), ia, sample=999)Run the code above in your browser using DataLab