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