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

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if a GeneralSubstitution object has undefined rates.

Usage

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

Arguments

this

A GeneralSubstitution object.

...

Not used.

Value

TRUE or FALSE.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GeneralSubstitution.

Examples

1
2
3
4
5
6
7
8
9
	# create a GeneralSubstitution object
	p<-GeneralSubstitution(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.