[R] Help on reshape function

David Winsemius dwinsemius at comcast.net
Tue Mar 6 19:15:31 CET 2012


On Mar 6, 2012, at 12:45 PM, R. Michael Weylandt wrote:

> You'll need to use the cast() function but I can't say more unless you
> can provide more specifics. I believe Hadley's website has more
> documentation than the package: http://had.co.nz/reshape/

in reshape2 Hadley did away with cast() and replaced it with more  
specialized versions, probably dcast() for this problem.

What is also missing here is some specificity for "retransform my  
data.frame into wide format ".

-- 
David.
>
> Michael
>
> On Tue, Mar 6, 2012 at 9:34 AM, mails <mails00000 at gmail.com> wrote:
>> Hey Michael,
>>
>> thanks for your help. I think the reshape2 library works much  
>> better than
>> the normal reshape function.
>> However, I still cannot retransform my data.frame into wide format  
>> once used
>> melt function to transform
>> it into long format. How do I get it back to wide format?
>> The documentation, unfortunately, is not very detailed.
>>
>>
>>
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/Help-on-reshape-function-tp4449464p4450044.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list