Learn R Programming

phylosim (version 3.0.5)

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

Description

Assotiate a process object with a QMatrix object.

Usage

# S3 method for QMatrix
setProcess(this, value, ...)

Arguments

this

A QMatrix object.

value

A Process object.

...

Not used.

Value

The Process object.

See Also

For more information see QMatrix.

Examples

Run this code
# NOT RUN {
	# 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
 
# }

Run the code above in your browser using DataLab