Learn R Programming

mateable (version 0.3.2)

simulateScene: Simulate a Mating Scene

Description

simulateScene generates a matingScene object -- a simulated population in a standard format with individuals randomly assigned a mating schedule, a location, and S-alleles

Usage

simulateScene(
  size = 30,
  meanSD = "2012-07-12",
  sdSD = 6,
  meanDur = 11,
  sdDur = 3,
  skSD = 0,
  xRange = c(0, 100),
  yRange = c(0, 100),
  distro = "unif",
  sAlleles = 10
)

Value

matingScene data frame -- see makeScene

Arguments

size

integer number of plants

meanSD

date mean start date

sdSD

date standard deviation of start date

meanDur

numeric duration in days

sdDur

standard deviation of duration in days

skSD

skew of the start date of the population

xRange

range of spatial extent of individuals along x-axis

yRange

range of spatial extent of individuals along y-axis

distro

unimplemented

sAlleles

integer count of S-Alleles that could be in the population

Author

Stuart Wagenius

See Also

makeScene

Examples

Run this code
simulateScene()

Run the code above in your browser using DataLab