landscape.theta.k: Calculate theta using the number of alleles

Description Usage Arguments Details Value See Also Examples

View source: R/pegas_interface.R

Description

Calculate theta using number of alleles from a landscape.

Usage

1

Arguments

rland

the Rmetasim landscape object

Details

Uses routines in the package 'ape'

Value

A matrix with num loci columns and num populations rows. Each element reflects the estimated theta for that population x locus combination

See Also

landscape.theta.h, landscape.theta.s

Examples

1
2
3
4
5
  exampleland <- landscape.new.example()
  exampleland <- landscape.simulate(exampleland, 4)

  theta.k.mat <- landscape.theta.k(exampleland)
  theta.k.mat

Example output

          [,1]      [,2]    [,3]
[1,] 1.0468790 0.4391999 1.29517
[2,] 0.9062843 0.4942971 1.46612

rmetasim documentation built on Feb. 16, 2018, 1:01 a.m.