setSite.Event: Assotiate an Event object with a Site object

Description Usage Arguments Value Author(s) See Also Examples

Description

Assotiate an Event object with a Site object.

Usage

1
2
## S3 method for class 'Event'
setSite(this, new.site, ...)

Arguments

this

An Event object.

new.site

A valid Site object.

...

Not used.

Value

The new associated Site object (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
11
12
	# create an Event object
	e<-Event()
	# create some Site objects
	s1<-Site(alphabet=NucleotideAlphabet(),state="A")
	s2<-clone(s1); s2$state<-"T"
	# assotiate s1 with e
	setSite(e,s1)
	e$site
	# assotiate s2 with e via virtual field
	e$site<-s2
	e$site
 

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