Get the unscaled rate matrix form a QMatrix object

Share:

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
 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.