Learn R Programming

rmetasim (version 3.1.14)

landscape.new.floatparam: Create a set of floating point parameters

Description

Create a set of floating point parameters for a Rmetasim landscape.

Usage

## must be called AFTER landscape.new.empty()
   landscape.new.floatparam(rland,s=0)

Arguments

rland

skeletion of landscape object, required

s

selfing (default=0), the selfing rate of the species

Examples

Run this code
# NOT RUN {
  ## Defaults
  exampleland <- landscape.new.empty()
  exampleland <- landscape.new.floatparam(exampleland)
  exampleland$floatparam

  ## .5 selfing rate
  exampleland <- landscape.new.empty()
  exampleland <- landscape.new.floatparam(exampleland,s=0.5)
  exampleland$floatparam

  rm(exampleland)
# }

Run the code above in your browser using DataLab