Learn R Programming

phylosim (version 3.0.5)

detachProcess.Site: Site

Description

Site. The site-process specific parameters stored in the Site object and belonging to the detached Process objects will be destroyed.

Usage

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

Arguments

this

A Site object

process

A Process object

...

Not used.

Value

The Site object (invisible).

See Also

For more information see Site.

Examples

Run this code
# NOT RUN {
	# create a Site objects and attach some processes
	s<-Site()
	s$alphabet<-NucleotideAlphabet()
	p1<-JC69(); p2<-K80()
	attachProcess(s,p1)
	attachProcess(s,p2)
	# get the list of attached processes
	s$processes
	# detach p1
	detachProcess(s,p1)
	s$processes
 
# }

Run the code above in your browser using DataLab