checkConsistency.Alphabet: Check object consistency

Description Usage Arguments Value Author(s) See Also Examples

Description

Check object consistency.

Usage

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

Arguments

this

An object.

...

Not used.

Value

Returns an invisible TRUE if no inconsistencies found, throws an error otherwise.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Alphabet.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
		# create an alphabet object
		a<-Alphabet(symbols=c(0,1));
		# check consistency
		print(checkConsistency(a));
		# mess up with the internals
		a$.symbols[1]<-"BAD";
		# NOT run: cosistency check now will throw an error
		## Not run:  print(checkConsistency(a)); 

 

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