Learn R Programming

phylosim (version 3.0.5)

==.Alphabet: Check if two alaphabet objects have the same symbol set

Description

Check if two alaphabet objects have the same symbol set.

Usage

# S3 method for Alphabet
==(e1, e2, ...)

Arguments

e1

An Alphabet object.

e2

An Alphabet object.

...

Not used.

Value

TRUE or FALSE

See Also

For more information see Alphabet.

Examples

Run this code
# NOT RUN {
	# create an alpahabet object
	a<-Alphabet(symbols=c(0,1));
	# clone object
	b<-clone(a)
	# compare the two objects
	print(a == b)
	# modify symbol set in b
	b$symbols<-c("AT","GC");
	print(a == b)

 
# }

Run the code above in your browser using DataLab