Re: [R] Different versions, different results ?

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Thu 02 Jun 2005 - 01:23:30 EST

On Wed, 1 Jun 2005 charles-r-nospam@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@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 02 01:39:08 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:20 EST