Learn R Programming

pop (version 0.1)

rate: rate transfun

Description

Create a transfun object representing a rate of transition between states - e.g. an expected number of offspring generated into one state from another. Typically used inside a call to transition

Usage

rate(value)
r(value)
is.rate(x)

Arguments

value
a numeric greater than 0 representing a rate
x
an object to be tested as a rate transfun object

Details

r() is a shorthand for rate().

Examples

Run this code
# these are equivalent
rate <- rate(0.2)
rate <- r(0.2)

is.rate(rate)

Run the code above in your browser using DataLab