Description Usage Arguments Value Author(s) See Also Examples
Clone a GeneralSubstitution object.
This method also clones the aggregated QMatrix object, but not the aggregated Alphabet object, as that is a good target for recycling.
1 2 | ## S3 method for class 'GeneralSubstitution'
clone(this, ...)
|
this |
A GeneralSubstitution object. |
... |
Not used. |
A GeneralSubstitution object.
Botond Sipos, Gregory Jordan
For more information see GeneralSubstitution
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # create a GeneralSubstitution object
p<-GeneralSubstitution(
alphabet=BinaryAlphabet(),
rate.list=list("0->1"=1,"1->0"=2),
name="MyBinary"
)
# clone p
pp<-clone(p)
# do some checks
p;pp
p == p
p == pp
equals(p$qMatrix, pp$qMatrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.