[R] rhsape2 bug?

John Kane jrkrideau at inbox.com
Sun Jul 22 15:11:02 CEST 2012


Check and see if you have reshape loaded as well.  I had a somewhat similar problem (R2.13 ?) and realised that reshape was masking reshape2

John Kane
Kingston ON Canada


> -----Original Message-----
> From: dwarnold45 at suddenlink.net
> Sent: Sat, 21 Jul 2012 16:06:11 -0700 (PDT)
> To: r-help at r-project.org
> Subject: [R] rhsape2 bug?
> 
> All,
> 
> I believe I am running the latest version of rshape2 (1.2.1). But this
> code:
> 
> library(reshape2)
> 
> tmp <- melt(smiths,
>      id.vars=1:2,
>      measure.vars=c("age","weight","height"),
>      variable.name="myvars",
>      value.name="myvals"
> )
> 
> names(tmp)
> 
> Produces this output:
> 
>> names(tmp)
> [1] "subject"  "time"     "variable" "value"
> 
> So you can see that these lines of code don't work:
> 
>      variable.name="myvars",
>      value.name="myvals"
> 
> Is this a bug?
> 
> David
> 
> 
> 
> --
> View this message in context:
> http://r.789695.n4.nabble.com/rhsape2-bug-tp4637331.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.

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!



More information about the R-help mailing list