Skip to content
Back to formatted view

Raw Message

Message-ID: <6rhed8elvs.fsf@bates5.stat.wisc.edu>
Date: 2002-12-20T16:44:03Z
From: Douglas Bates
Subject: stack on factors
In-Reply-To: <2FE6D3D02CCDD211B80600902745F56C018D11F6@exchange-tv.tvl.qld.csiro.au>

Alexander.Herr at csiro.au writes:

> It seems that stack() does not include factors. Any easy way of "stacking"
> factors in a dataframe without recoding to numbers?

You may want to try reshape(..., direction = 'long') instead of stack.