Learn R Programming

phylosim (version 3.0.5)

setSymbols.Alphabet: Specify a new symbol set for an Alphabet object

Description

Specify a new symbol set for an Alphabet object.

Usage

# S3 method for Alphabet
setSymbols(this, set, ...)

Arguments

this

An Alphabet object.

set

The vector containing the new symbols set, automatically converted into a character vector.

...

Not used.

Value

The new symbol set as a character vector.

See Also

For more information see Alphabet.

Examples

Run this code
# NOT RUN {
	# create a new alphabet object
	a<-Alphabet()
	a
	# specify a new symbol set
	setSymbols(a,c(0,1))
	a
	# the same, but now use the virtual field
	a$symbols<-c("A","T","G","C")
	a

 
# }

Run the code above in your browser using DataLab