Learn R Programming

phylosim (version 3.0.5)

areSynonymous.CodonAlphabet: Check whether two codons are synonymous

Description

Check whether two codons are synonymous.

Usage

# S3 method for CodonAlphabet
areSynonymous(this, codons, ...)

Arguments

this

A CodonAlphabet object.

codons

A vector containing two codons.

...

Not used.

Value

TRUE or FALSE.

See Also

For more information see CodonAlphabet.

Examples

Run this code
# NOT RUN {
	# create a CodonAlphabet object
	a<-CodonAlphabet()
	areSynonymous(a,c("TCC","TCT"))
	areSynonymous(a,c("TCC","CCT"))
 
# }

Run the code above in your browser using DataLab