Hi Murray,
You were very close.
cast(mexa2, ... ~ variable + census)
Should do the trick.
-Ista
On Sun, Oct 25, 2009 at 5:10 AM, Murray Jorgensen wrote:
> I have got part of the way to what I want by playing with a small example:
>
>> example2
>
> ano census total.pop class
> 1 222 96
On Oct 25, 2009, at 5:07 AM, Murray Jorgensen wrote:
I have got part of the way to what I want by playing with a small
example:
> example2
ano census total.pop class
1 222 96 113111
2 222 1 124512
3 239 96 392111
4 239 1 450312
5 2
It does indeed.
Thank you, Chuck.
-Don
At 1:25 PM -0500 2/7/08, Chuck Cleland wrote:
>On 2/7/2008 11:40 AM, Don MacQueen wrote:
>>Hello,
>>
>>I am having difficulty figuring out how to use functions in the
>>reshape package to perform a wide to long transformation
>>
>>I have a "wide" dataframe
On 2/7/2008 11:40 AM, Don MacQueen wrote:
> Hello,
>
> I am having difficulty figuring out how to use functions in the
> reshape package to perform a wide to long transformation
>
> I have a "wide" dataframe whose columns are like this example:
>
>id1 id2 subject treat height weight age
>
4 matches
Mail list logo