[Rd] Re: desiderata for data manipulation
Peter Dalgaard BSA
01 Nov 2000 16:30:45 +0100
> 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
>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
~~~~~~~~~~ - (email@example.com) 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: firstname.lastname@example.org