[R] Different versions, different results ?

Thomas Lumley tlumley at u.washington.edu
Wed Jun 1 17:23:30 CEST 2005


On Wed, 1 Jun 2005 charles-r-nospam at plessy.org wrote:

> Dear all,
>
> I wrote the following batch script on a iMac, and ran it on a linux
> mosix cluster.
>
> tu <- read.table("cage.mm5.tags.rna_lib.CAA-CAJ.tu-reshape.table")
> tu_reshaped <- t(reshape(tu[1:50,], direction="wide", timevar="tu", idvar=c("rna","lib")))
> write.table(tu_reshaped, "cage.mm5.tags.rna_lib.CAA-CAJ.tu-reshaped.table")
> q(sav="no")
>
<snip>
> There is something obviously wrong in the second one. The versions are:
>
> GSLC8|Reproducibility|$ R --version
> R 2.1.0 Patched (2005-05-12).
>
> charles at tofu:~$ R --version
> R 1.5.1 (2002-06-17).
>
> I am wondering wether there is a fix or I have to ask the admin of the 
> mosix cluster to upgrade R...

Having multiple `id' variables in reshape() was a feature added in version 
2.0.0, so you have to upgrade.

 	-thomas




More information about the R-help mailing list