setType.Alphabet: Set Alphabet object type

Description Usage Arguments Value Author(s) See Also Examples

Description

Set Alphabet object type.

Usage

1
2
## S3 method for class 'Alphabet'
setType(this, new_type, ...)

Arguments

this

An Alphabet object.

new_type

A character vector of length one.

...

Not used.

Value

The new type (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Alphabet.

Examples

1
2
3
4
5
6
7
8
	# create an alphabet object
	a<-Alphabet(symbols=c(1,2,3))
	# set a new type
	setType(a,"MyAlphabet")
	a$type
	# set type via virtual field
	a$type<-"MorphChars"
 

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