getAlphabet.QMatrix: Get the Alphabet object associated with a QMatrix object

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the Alphabet object associated with a QMatrix object.

Usage

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

Arguments

this

A QMatrix object.

...

Not used.

Value

An 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.