Learn R Programming

phylosim (version 3.0.5)

getProcesses.Sequence: Get the Process objects attached to the Site objects aggregated by a Sequence object

Description

Get the Process objects attached to the Site objects aggregated by a Sequence object.

Usage

# S3 method for Sequence
getProcesses(this, index, ...)

Arguments

this

A Sequence object.

index

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

...

Not used.

Value

A list of lists of Process objects.

See Also

For more information see Sequence.

Examples

Run this code
# NOT RUN {
	# create a sequence object with some processes attached
	s<-Sequence(
               length=4,
               alphabets=list(NucleotideAlphabet()),
               processes=list(list(JC69(),K80()),list(GTR()))
               )
	# get the list of lists of attached processes from positions 1 and 3
	getProcesses(s,c(1,3))
	# get processes via virtual field
	s$processes
 
# }

Run the code above in your browser using DataLab