Learn R Programming

phylosim (version 3.0.5)

getSymbolLength.Alphabet: Get the length of the symbols in a given alphabet object

Description

Get the length of the symbols in a given alphabet object.

Usage

# S3 method for Alphabet
getSymbolLength(this, ...)

Arguments

this

An Alphabet object.

...

Not used.

Value

A numeric vector of length one.

See Also

For more information see Alphabet.

Examples

Run this code
# NOT RUN {
	# create an alphabet object
	a<-Alphabet(symbols=c("AAA","AAC"));
	# get symbol length
	getSymbolLength(a);
	# get symbol length via virtual field
	a$symbolLength

 
# }

Run the code above in your browser using DataLab