Re: [R] Column order in stacking/unstacking

2011-03-12 Thread Matthew Carroll
again for the help Best wishes, Matthew -Original Message- From: Peter Ehlers [mailto:ehl...@ucalgary.ca] Sent: 12 March 2011 11:09 AM To: Dennis Murphy Cc: Matthew Carroll; r-help@r-project.org Subject: Re: [R] Column order in stacking/unstacking On 2011-03-12 02:01, Dennis Murphy wrote: &

Re: [R] Column order in stacking/unstacking

2011-03-12 Thread Peter Ehlers
On 2011-03-12 02:01, Dennis Murphy wrote: Hi: It would help if you named your variables such that alphanumeric ordering doesn't disturb your variable ordering. Having been burned by this a few times, I've learned the basics of sprintf() :) Here's your example revisited, along with an alternative

Re: [R] Column order in stacking/unstacking

2011-03-12 Thread Dennis Murphy
Hi: It would help if you named your variables such that alphanumeric ordering doesn't disturb your variable ordering. Having been burned by this a few times, I've learned the basics of sprintf() :) Here's your example revisited, along with an alternative stacking/unstacking display with package re

[R] Column order in stacking/unstacking

2011-03-12 Thread Matthew Carroll
Dear R users, I'm having some problems with the stack() and unstack() functions, and wondered if you could help. I have a large data frame (400 rows x 2000 columns), which I need to reduce to a single column of values (and therefore 80 rows), so that I can use it in other operations (e.g.,