Learn R Programming

phylosim (version 3.0.5)

setType.Alphabet: Set Alphabet object type

Description

Set Alphabet object type.

Usage

# S3 method for 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).

See Also

For more information see Alphabet.

Examples

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

Run the code above in your browser using DataLab