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

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if two alaphabet objects have the same symbol set.

Usage

1
2
## S3 method for class 'Alphabet'
e1 == e2, ...

Arguments

e1

An Alphabet object.

e2

An Alphabet object.

...

Not used.

Value

TRUE or FALSE

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 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)

 

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