Learn R Programming

phylosim (version 3.0.5)

getSite.Event: Get the Site object associated with an Event object

Description

Get the Site object associated with an Event object.

Usage

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

Arguments

this

An Event object.

...

Not used.

Value

A Site 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
	e<-s$sites[[1]]$events[[1]]
	# get the site associated with e
	getSite(e)
	# get site via virtual field
	e$site
 
# }

Run the code above in your browser using DataLab