Learn R Programming

phylosim (version 3.0.5)

checkConsistency.Alphabet: Check object consistency

Description

Check object consistency.

Usage

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

Arguments

this

An object.

...

Not used.

Value

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

See Also

For more information see Alphabet.

Examples

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

Run the code above in your browser using DataLab