[R] S4 into a data frame

spf385 spfarris at utexas.edu
Mon Jun 18 22:49:04 CEST 2012


Greetings,

I'm still very new to R; however I have been tasked with converting an S4
object into a data.frame. We are just trying to learn the basics of S4.
Could anyone offer a 'simple' example of coercing an S4 object (such as
might be stored in a package attribute) into a data.frame? Ultimately, we
would like to do something along the lines of 

mydata <- as.data.frame(original S4 object)

Thanks in advance! 

--
View this message in context: http://r.789695.n4.nabble.com/S4-into-a-data-frame-tp4633746.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list