[R] rhsape2 bug?

Ista Zahn istazahn at gmail.com
Sun Jul 22 01:40:18 CEST 2012


Hi David,

Your example works as expected for me (see sessionInfo below). What
version of R are you using? What other packages are loaded?

R version 2.15.1 (2012-06-22)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] reshape2_1.2.1

loaded via a namespace (and not attached):
[1] plyr_1.7.1   stringr_0.6  tools_2.15.1


Best,
Ista



On Sat, Jul 21, 2012 at 7:06 PM, darnold <dwarnold45 at suddenlink.net> wrote:
> 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.



More information about the R-help mailing list