setRate.Event: Set the rate of an Event object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the rate of an Event object.

Usage

1
2
## S3 method for class 'Event'
setRate(this, value, ...)

Arguments

this

An Event object.

value

The event rate.

...

Not used.

Value

The new value of the rate (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Event.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# create an Event object
	e<-Event(rate=0.1)
	# set  a new rate
	setRate(e,0.2)
	# get rate via virtual field
	e$rate
	# set rate via virtual field
	e$rate<-0.5
	e$rate
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.