setProcess.QMatrix: Assotiate a process object with a QMatrix object

Description Usage Arguments Value Author(s) See Also Examples

Description

Assotiate a process object with a QMatrix object.

Usage

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

Arguments

this

A QMatrix object.

value

A Process object.

...

Not used.

Value

The Process object.

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.