Learn R Programming

phylosim (version 3.0.5)

getScaledMatrix.QMatrix: Get the scaled rate matrix form a QMatrix object

Description

Get the scaled rate matrix form a QMatrix object.

Usage

# S3 method for QMatrix
getScaledMatrix(this, ...)

Arguments

this

A QMatrix object.

...

Not used.

Value

A matrix object.

See Also

For more information see QMatrix.

Examples

Run this code
# NOT RUN {
       # create a GeneralSubstitution object
       # provide an Alphabet object and the rates
       p<-GeneralSubstitution(alphabet=BinaryAlphabet(), rate.list=list("1->0"=1,"0->1"=3))
	# get the QMatrix object from p
	m<-p$QMatrix
	# get the scaled rate matrix from m
	m$scaledMatrix
 
# }

Run the code above in your browser using DataLab