Re: [Rd] How to put my S4 class into data.frame

From: hadley wickham <>
Date: Sat 04 Nov 2006 - 13:39:34 GMT

> OTOH, it's interesting that some methods to "stick some S4
> objects into a data frame do work fine , at least for the
> following case (R-script below) -- and I wonder if we (R developers)
> shouldn't think about more explicitly supporting this,
> e.g., by stating something like
> >> If an S4 object simply *contains* an atomic class that can be
> >> used as data.frame column, then that S4 object can also be used
> >> as data.frame column
> and trying to fix all cases where the above is not fulfilled.

There are also many cases where using a list as a data.frame column will cause errors, depending on the contents of the list.

Hadley mailing list Received on Sun Nov 05 02:28:18 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 04 Nov 2006 - 16:30:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.