| as.phyDat-methods | R Documentation |
phyDat objectThis function coerces Dna object to phyDat {phangorn} object .
## S4 method for signature 'Dna'
as.phyDat(x, indels="sic",...)
x |
an object of class |
indels |
the indel coding method to be used. This must be one of "sic", "5th" or "missing". Any unambiguous substring can be given. See also ‘Details’ |
... |
additional arguments to |
Available indel coding methods:
sic:Treating gaps as a missing character and coding them separately following the simple indel coding method.
5th:Treating gaps as a fifth state character.
missing:Treating gaps as a missing character.
an object of class phyDat.
signature(x = "Dna")coerces a Dna object to a phyDat object.
data("dna.obj")
x<-dna.obj
## Coercing a Dna object to a phyDat object.
# Simple indel coding.
phyd<-as.phyDat(x)
phyd
# Gaps as 5th state characters.
phyd<-as.phyDat(x,indels="5")
phyd
# Gaps as 5th state characters.
phyd<-as.phyDat(x,indels="m")
phyd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.