landscape.mismatchdist: Calculate a mismatch distribution for a locus in a landscape

Description Usage Arguments Details Value Examples

View source: R/dnadiversity.R

Description

Calculate mismatch distribution from a landscape based upon the number of seqregating sites.

Usage

1
  landscape.mismatchdist(Rland,lnum=1)

Arguments

lnum

locus number to calculate mismatch upon

Rland

the Rmetasim landscape object

Details

Calculates a mismatch distribution for DNA-sequence-based loci.

Value

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

Examples

1
2
3
4
  exampleland <- landscape.new.example()
  exampleland <- landscape.simulate(exampleland, 4)
  misdist <- landscape.mismatchdist(exampleland,3) #will produce       
  misdist                                          #ridiculous output

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