Learn R Programming

phylosim (version 3.0.5)

getHandler.Event: Get the handler function of an Event object

Description

Get the handler function of an Event object.

Usage

# S3 method for Event
getHandler(this, ...)

Arguments

this

An Event object.

...

Not used.

Value

A function object.

See Also

For more information see Event.

Examples

Run this code
# NOT RUN {
	# create a sequence and attach a process
	s<-NucleotideSequence(string="ATGC",processes=list(list(JC69())))
	# get the first active event from the first site
   # only Sequence methods set .position,
   # so s$sites[[1]]$events[[1]] wouldn't work.
	e<-getEvents(s,1)[[1]]
	# het the handler of e
	getHandler(e)
 
# }

Run the code above in your browser using DataLab