Re: [R] melting a list: basic question

2008-07-27 Thread hadley wickham
Is it possible to install your development version of reshape? I could not find it alongside of ggplot2 on github. Not yet, but I'm working on it. If not, I've added ... in the method for the current version and it seems to work for me. Yes, that's the exact change I made. Thanks! Hadley

Re: [R] melting a list: basic question

2008-07-26 Thread baptiste auguie
On 26 Jul 2008, at 02:52, hadley wickham wrote: On Fri, Jul 25, 2008 at 8:50 PM, hadley wickham [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 9:49 AM, baptiste auguie [EMAIL PROTECTED] wrote: Dear list, I'm trying to use the reshape package to perform a merging operation on a list

[R] melting a list: basic question

2008-07-25 Thread baptiste auguie
Dear list, I'm trying to use the reshape package to perform a merging operation on a list of data.frames as illustrated below, a - 1:10 example - list( data.frame(a=a, b=sin(a)), data.frame(a=a, b=cos(a)) ) melt(example, id = a) this produces the desired result, where the

Re: [R] melting a list: basic question

2008-07-25 Thread Dieter Menne
baptiste auguie ba208 at exeter.ac.uk writes: I'm trying to use the reshape package to perform a merging operation on a list of data.frames as illustrated below, a - 1:10 example - list( data.frame(a=a, b=sin(a)), data.frame(a=a, b=cos(a)) ) melt(example, id = a) this

Re: [R] melting a list: basic question

2008-07-25 Thread baptiste auguie
Given that I cannot arbitrarily change the data to make a an integer, can I still use a as a grouping variable? I tried melt(example, id = factor(a)) but it does not work either. Must this change from numeric values to factors be done before applying melt? Thanks, baptiste On 25 Jul

Re: [R] melting a list: basic question

2008-07-25 Thread hadley wickham
On Fri, Jul 25, 2008 at 9:49 AM, baptiste auguie [EMAIL PROTECTED] wrote: Dear list, I'm trying to use the reshape package to perform a merging operation on a list of data.frames as illustrated below, a - 1:10 example - list( data.frame(a=a, b=sin(a)), data.frame(a=a, b=cos(a)) )

Re: [R] melting a list: basic question

2008-07-25 Thread hadley wickham
On Fri, Jul 25, 2008 at 8:50 PM, hadley wickham [EMAIL PROTECTED] wrote: On Fri, Jul 25, 2008 at 9:49 AM, baptiste auguie [EMAIL PROTECTED] wrote: Dear list, I'm trying to use the reshape package to perform a merging operation on a list of data.frames as illustrated below, a - 1:10