powered by
as.matrix
Coerces an object to a matrix.
# S4 method for Dna as.matrix(x)
returns a character matrix.
an object of class Dna.
Dna
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) if (FALSE) { # gives the same result dna.obj[1:4,1:6,as.matrix=TRUE] }
Run the code above in your browser using DataLab