Learn R Programming

phylosim (version 3.0.5)

detachProcess.Sequence: Detach a Process object from a set of Site objects aggregated by a Sequence object

Description

Detach a Process object from a set of Site objects aggregated by a Sequence object.

Usage

# S3 method for Sequence
detachProcess(this, process, index, ...)

Arguments

this

A Sequence object.

process

A Process object.

index

An integer vector specifying a set of positions. It is set to 1:seq$length if omitted.

...

Not used.

Value

The Sequence object (invisible).

See Also

For more information see Sequence.

Examples

Run this code
# NOT RUN {
	# create a sequence object with two processes attached
	p<-JC69()
	s<-Sequence(length=4,alphabets=list(NucleotideAlphabet()),processes=list(list(p,K80())))
	# get the list of attached processes
	s$processes
	# detach JC69 from range c(1,4)
	detachProcess(s,p,c(1,4))
	s$processes
 
# }

Run the code above in your browser using DataLab