[Rd] Why is there no c.factor?

hadley wickham h.wickham at gmail.com
Thu Feb 4 19:04:17 CET 2010

On Thu, Feb 4, 2010 at 10:45 AM, Patrick Burns <pburns at pburns.seanet.com> wrote:
> The argument I have in 'The R Inferno'
> is that how you want to combine factors
> may differ from someone else's desires.
> There are lots of tricky questions:
> What about ordered factors?
> What if the ordered levels are different in
> different objects?

Ordered factors are trickier.  I'd suggest the following compromise:

 * if all orders are the same, return an ordered factor
 * if not, return a factor with a warning



More information about the R-devel mailing list