as.DNAbin-methods | R Documentation |
DNAbin
objectThis function coerces Dna
object to DNAbin
{ape}
object .
## S4 method for signature 'Dna'
as.DNAbin(x, endgaps=TRUE)
x |
an object of class |
endgaps |
boolean; gaps at the end of the sequences are included if this is TRUE. |
an object of class DNAbin.
signature(x = "Dna")
coerces a Dna
object to a DNAbin
object.
## Coercing a Dna object to a DNAbin object.
data("dna.obj")
x<-dna.obj
dBin<-as.DNAbin(x)
dBin
#gaps at the end removed
dBin<-as.DNAbin(x, endgaps=FALSE)
dBin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.