Re: [R] Change data format query

2014-02-19 Thread Law, Jason
, February 19, 2014 7:18 AM To: r-help@r-project.org Subject: [R] Change data format query # Data manipulation problem # Please my Git repo at <https://github.com/markruddy/RAD.git> Running RStudio 0.97.248 The dataset RYA13Report_transect_AB.csv is in a sort of 'longform' at

Re: [R] Change data format query

2014-02-19 Thread drruddy gmail
Thanks for the link Hadley.  On 19 February 2014 at 19:53:31, Hadley Wickham (h.wick...@gmail.com) wrote: You might want to try reading http://vita.had.co.nz/papers/tidy-data.html, which lays out the principles by which you might want to organise your data, matching each task with the appr

Re: [R] Change data format query

2014-02-19 Thread Hadley Wickham
You might want to try reading http://vita.had.co.nz/papers/tidy-data.html, which lays out the principles by which you might want to organise your data, matching each task with the appropriate reshape2 function. Hadley On Wed, Feb 19, 2014 at 9:18 AM, drruddy gmail wrote: > > # Data manipulation

Re: [R] Change data format query

2014-02-19 Thread drruddy gmail
Hi Bert, yes I have reshape2. Apols for not being more precise. Spent over an hour with reshape2 and web examples but I'm stuck. cheers Mark On 19 February 2014 at 19:19:22, Bert Gunter (gunter.ber...@gene.com) wrote: Just wanted to suggest that you check out the reshape2 package. A lot of f

Re: [R] Change data format query

2014-02-19 Thread Bert Gunter
Just wanted to suggest that you check out the reshape2 package. A lot of folks have complained that R's base reshape() command is rather opaque, and Hadley Wickham wrote his package to facilitate this sort of thing. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Dat

[R] Change data format query

2014-02-19 Thread drruddy gmail
# Data manipulation problem # Please my Git repo at Running RStudio 0.97.248 The dataset RYA13Report_transect_AB.csv is in a sort of 'longform' at the moment. Which I would like to change so that: 1. Each Pack_Name is a column 2. Each BH_Name is a row 3.