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

Description Usage Arguments Value Author(s) See Also Examples

Description

Specify a new symbol set for an Alphabet object.

Usage

1
2
## S3 method for class '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.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Alphabet.

Examples

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

 

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