getProcess.QMatrix: Get the process object associated with a QMatrix object

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the process object associated with a QMatrix object.

Usage

1
2
## S3 method for class 'QMatrix'
getProcess(this, ...)

Arguments

this

A QMatrix object.

...

Not used.

Value

A process object, most likely one which inherits from GeneralSubstitution.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see QMatrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
	# Create a GeneralSubstitution object
	p<-GeneralSubstitution(alphabet=BinaryAlphabet())
	p
	# get the associated QMatrix object from p
	m<-p$qMatrix
	summary(m)
	# get the associated process from m
	m$process
	# clone p
	pp<-clone(p)
	# assotiate m with pp
	pp$qMatrix<-m
	# assotiate pp with m
	m$process<-pp
	m$process
 

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