getMatrix.QMatrix: Get the unscaled rate matrix form a QMatrix object

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the unscaled rate matrix form a QMatrix object.

Usage

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

Arguments

this

A QMatrix object.

...

Not used.

Value

A matrix object.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see QMatrix.

Examples

1
2
3
4
5
6
7
8
       # 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 unscaled rate matrix from m
	m$matrix
 

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