hasUndefinedRate.ToleranceSubstitution: Check if a ToleranceSubstitution object has undefined rates

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if a ToleranceSubstitution object has undefined rates.

Usage

1
2
## S3 method for class 'ToleranceSubstitution'
hasUndefinedRate(this, ...)

Arguments

this

A ToleranceSubstitution object.

...

Not used.

Value

TRUE or FALSE.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see ToleranceSubstitution.

Examples

1
2
3
4
5
6
7
8
9
	# create a ToleranceSubstitution object
	p<-ToleranceSubstitution(alphabet=BinaryAlphabet())
	# check if it has undefined rates
	hasUndefinedRate(p)	# TRUE
	# set the missing rates
	p$rateList<-list("0->1"=1,"1->0"=2)
	# check for undefined rates again
	hasUndefinedRate(p)	# FALSE
 

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