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

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the Alphabet object attached to a Site object.

Usage

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

Arguments

this

A Site object.

...

Not used.

Value

An Alphabet object.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Site.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# 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
 

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