Learn R Programming

phylosim (version 3.0.5)

getAlphabet.Site: Get the Alphabet object attached to a Site object

Description

Get the Alphabet object attached to a Site object.

Usage

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

Arguments

this

A Site object.

...

Not used.

Value

An Alphabet object.

See Also

For more information see Site.

Examples

Run this code
# NOT RUN {
	# create a site object
	s<-Site()
	# create an Alphabet object
	a<-Alphabet(c("A","T","G"))
	# attach alphabet to site object
	setAlphabet(s,a)
	# get attached alphabet
	getAlphabet(s)
	# get attached alphabet via virtual field
	s$alphabet
 
# }

Run the code above in your browser using DataLab