as.matrix-methods | R Documentation |
as.matrix
in the Package haplotypesCoerces an object to a matrix.
## S4 method for signature 'Dna'
as.matrix(x)
x |
an object of class |
returns a character matrix.
signature(x = "Dna")
coerces an object of class Dna to a matrix.
data("dna.obj")
## Coercing a 'Dna' object to a matrix.
x<-dna.obj[1:4,1:6,as.matrix=FALSE]
x
as.matrix(x)
## Not run:
# gives the same result
dna.obj[1:4,1:6,as.matrix=TRUE]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.