setAlphabet.QMatrix: Set the Alphabet object for a QMatrix object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the Alphabet object for a QMatrix object.

This method rebuilds the scaled and unscaled rate matrices and so sets all rates to NA.

Usage

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

Arguments

this

A QMatrix object.

value

An Alphabet object.

...

Not used.

Value

The Alphabet 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
	# create a QMatrix object
	m<-QMatrix()
	# set the alphabet
	setAlphabet(m,NucleotideAlphabet())
	# get the alphabet
	getAlphabet(m)
	# set alphabet via virtual field
	m$alphabet<-BinaryAlphabet()
	summary(m)
 

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