[Rd] reshape direction="long" does not drop temporary ID (PR#8152)
aniko.szabo@hci.utah.edu
aniko.szabo at hci.utah.edu
Fri Sep 23 21:54:39 CEST 2005
Full_Name: Aniko Szabo
Version: 2.1.0
OS: Windows XP
Submission from: (NULL) (155.100.234.96)
When using reshape with direction="long", multiple id variables and only one
column of varying data, the resulting data frame has a temporary ID variable.
Here is an example:
a <- data.frame(G=LETTERS[1:3], H=letters[1:3], x=1:3)
reshape(a, direction="long", varying=list(c("x")), idvar=c("G","H"))
G H tempID29457 time x
1 A a A.a 1 1
2 B b B.b 1 2
3 C c C.c 1 3
While I understand that there was not much point to reshaping, I think it is
still a bug.
More information about the R-devel
mailing list