setAlphabet.Process: Assotiate an Alphabet object with a Process object

Description Usage Arguments Value Author(s) See Also Examples

Description

Assotiate an Alphabet object with a Process object.

Usage

1
2
## S3 method for class 'Process'
setAlphabet(this, new.alphabet, ...)

Arguments

this

A Process object.

new.alphabet

A valid Alphabet object.

...

Not used.

Value

The Alphabet object (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Process.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	# create objects
	a<-AminoAcidAlphabet()
	p<-Process()
	# assotiate p with Alphabet object a
	setAlphabet(p,a)
	p$alphabet
	# assotiate p with a new NucleotideAlphabet via virtual field
	p$alphabet<-NucleotideAlphabet()
	p$alphabet
 

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