Learn R Programming

phylosim (version 3.0.5)

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

Description

Get the Alphabet object associated with a QMatrix object.

Usage

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

Arguments

this

A QMatrix object.

...

Not used.

Value

An Alphabet object.

See Also

For more information see QMatrix.

Examples

Run this code
# NOT RUN {
	# 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)
 
# }

Run the code above in your browser using DataLab