Learn R Programming

phylosim (version 3.0.5)

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

Description

Assotiate an Alphabet object with a Process object.

Usage

# S3 method for Process
setAlphabet(this, new.alphabet, ...)

Arguments

this

A Process object.

new.alphabet

A valid Alphabet object.

...

Not used.

Value

The Alphabet object (invisible).

See Also

For more information see Process.

Examples

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

Run the code above in your browser using DataLab