[R] reshape question

Thomas Lumley tlumley at u.washington.edu
Thu May 18 22:33:47 CEST 2006


On Thu, 18 May 2006, Hutchins, Reid wrote:
>
>
> I am a relative R newbie and I am having trouble with reshape() on R
> V1.9.1 on Linux.  The same code appears to be ok when run on R V2.2.0 on
> Windows and a V2.1 on Linux.  Any help would be great as I need to stay
> on V1.9 for the immediate future...  Thanks, Reid Hutchins
>

You may be out of luck.  In the NEWS file for 2.0.0 it has
   o   reshape() can handle multiple 'id' variables.
so it looks like reshape in 1.9.1 can't handle multiple id variables.

You could create a single id variable (eg using interaction()).

 	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle




More information about the R-help mailing list