From p.dalgaard@biostat.ku.dk  Wed Nov  1 15:30:45 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 01 Nov 2000 16:30:45 +0100
Subject: [Rd] Re: desiderata for data manipulation
In-Reply-To: ben@zoo.ufl.edu's message of "Wed, 1 Nov 2000 10:05:19 -0500 (EST)"
References: <Pine.LNX.4.10.10011011002570.12003-100000@bolker.zoo.ufl.edu>
Message-ID: <x2ofzzhfq2.fsf@blueberry.kubism.ku.dk>

ben@zoo.ufl.edu writes:

>   What does Stata do in this case?
>   I suppose you could generate an error, or give the user the choice to
> duplicate Y1/assume Y1 was the first or last case and put in NAs for the
> others.

>From the help file Tony sent, I would assume that it keeps reshaping
information around, since you can just say "reshape wide". If you
start with data in the long format, I'm not quite sure what it does.

If you assume that the variable to "unreshape" on is of the form

 1 2 ... n 1 2 ... n 1 2 ... n ...

and that everything except the response variables is constant within
blocks, then things are reasonably simple, I suppose.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Re: desiderata for data manipulation
Peter Dalgaard BSA