Description Usage Arguments Value Author(s) See Also Examples
Check if a ToleranceSubstitution object has undefined rates.
1 2 | ## S3 method for class 'ToleranceSubstitution'
hasUndefinedRate(this, ...)
|
this |
A ToleranceSubstitution object. |
... |
Not used. |
TRUE or FALSE.
Botond Sipos, Gregory Jordan
For more information see ToleranceSubstitution
.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.