powered by
DNAbin
This function coerces Dna object to DNAbin {ape} object .
Dna
{ape}
# S4 method for Dna as.DNAbin(x, endgaps=TRUE)
an object of class DNAbin.
DNAbin.
an object of class Dna.
boolean; gaps at the end of the sequences are included if this is TRUE.
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
Run the code above in your browser using DataLab