[R] rhsape2 bug?

darnold dwarnold45 at suddenlink.net
Sun Jul 22 01:06:11 CEST 2012


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.



More information about the R-help mailing list