powered by
Set the rate of an Event object.
# S3 method for Event setRate(this, value, ...)
An Event object.
The event rate.
Not used.
The new value of the rate (invisible).
For more information see Event.
Event
# 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