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