From h.wickham at gmail.com  Sat Nov  4 14:39:34 2006
From: h.wickham at gmail.com (hadley wickham)
Date: Sat, 4 Nov 2006 07:39:34 -0600
Subject: [Rd] How to put my S4 class into data.frame
In-Reply-To: <17740.24717.488162.230545@stat.math.ethz.ch>
References: <454BDFF5.7080901@bfro.uni-lj.si> <454BE4C5.70504@iq.harvard.edu>
	<454BE839.3000109@bfro.uni-lj.si>
	<17740.24717.488162.230545@stat.math.ethz.ch>
Message-ID: <f8e6ff050611040539w3c8c7e93x1fad9a7b2e972e4f@mail.gmail.com>

> 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



[Rd] How to put my S4 class into data.frame
hadley wickham