as.DNAbin-methods {haplotypes} | R Documentation |
Coerces an object to a DNAbin
object
Description
This function coerces Dna
object to DNAbin
{ape}
object .
Usage
## S4 method for signature 'Dna'
as.DNAbin(x, endgaps=TRUE)
Arguments
x |
an object of class |
endgaps |
boolean; gaps at the end of the sequences are included if this is TRUE. |
Value
an object of class DNAbin.
Methods
signature(x = "Dna")
-
coerces a
Dna
object to aDNAbin
object.
Examples
## 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
[Package haplotypes version 1.1.3.1 Index]