Skip to content
Prev 218095 / 398498 Next

transpose? reshape? flipping? challenge with data frame

Fabulous!  I managed to get close with t(), but had obviously missed the step of setting the rownames first.

Thanks for your help!
David

-----Original Message-----
From: Ista Zahn [mailto:istazahn at gmail.com] 
Sent: Friday, 23 April 2010 2:29 PM
To: Gobbett, David (CSE, Waite Campus)
Cc: r-help at r-project.org
Subject: Re: [R] transpose? reshape? flipping? challenge with data frame

Hi David,
There are many ways, including

rownames(propsum) <- propsum$coverClass
propsum$coverClass <- NULL
t(propsum)

Best,
Ista
On Fri, Apr 23, 2010 at 5:43 AM, <David.Gobbett at csiro.au> wrote: