isAttached.Site: Check whether a Process object is attached to a Site object

Description Usage Arguments Value Author(s) See Also Examples

Description

Check whether a Process object is attached to a Site object.

Usage

1
2
## S3 method for class 'Site'
isAttached(this, process, ...)

Arguments

this

A Site object.

process

A Process object.

...

Not used.

Value

TRUE or FALSE.

Author(s)

Botond Sipos, Gregory Jordan

See Also

Site Process attachProcess detachProcess getProcesses setProcesses

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# create a Site object
	s<-Site(alphabet=NucleotideAlphabet())
	# create a Process object
	p<-JC69()
	# check if p is attached to s
	isAttached(s,p)
	# attach p to s
	s$processes<-list(p)
	isAttached(s,p)
 

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