Learn R Programming

phylosim (version 3.0.5)

setRate.Event: Set the rate of an Event object

Description

Set the rate of an Event object.

Usage

# S3 method for Event
setRate(this, value, ...)

Arguments

this

An Event object.

value

The event rate.

...

Not used.

Value

The new value of the rate (invisible).

See Also

For more information see Event.

Examples

Run this code
# NOT RUN {
	# 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
 
# }

Run the code above in your browser using DataLab