Learn R Programming

phylosim (version 3.0.5)

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

Description

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

Usage

# S3 method for Site
isAttached(this, process, ...)

Arguments

this

A Site object.

process

A Process object.

...

Not used.

Value

TRUE or FALSE.

See Also

Site Process attachProcess detachProcess getProcesses setProcesses

Examples

Run this code
# NOT RUN {
	# 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)
 
# }

Run the code above in your browser using DataLab