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

View source: R/pegas_interface.R

landscape.theta.kR Documentation

Calculate theta using the number of alleles

Description

Calculate theta using number of alleles from a landscape.

Usage

 landscape.theta.k(rland)

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

  exampleland <- landscape.new.example()
  exampleland <- landscape.simulate(exampleland, 4)

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

stranda/rmetasim documentation built on Aug. 25, 2023, 12:22 p.m.