jacknife_populations: Create jacknife samples of a genind object by population

Description Usage Arguments Value See Also Examples

Description

Makes a series of jacknife samples across populations from a genind object. This function returns a list of genind objects that can then be further processed (see examples below).

Usage

1
jacknife_populations(x, sample_frac = 0.5, nreps = 1000)

Arguments

x

genind object (from package adegenet)

sample_frac

fraction of pops to sample in each replication (default 0.5)

nreps

number of jacknife replicates to run (default 1000)

Value

a list of genind objects to be further processed

See Also

Other resample: chao_bootstrap, summarise_bootstrap

Examples

1
2
3
4
5
6
7
## Not run:   
data(nancycats)
obs <- diff_stats(nancycats)
jn <- jacknife_populations(nancycats)
jn.D <- summarise_bootstrap(jn, D_Jost)

## End(Not run)

mmod documentation built on May 1, 2019, 10:55 p.m.