[Rd] Reshaping Data

From: Christian Morgenstern <christian_m10_at_hotmail.com>
Date: Mon, 01 Jun 2009 11:33:19 +0000

Hi,

i did a mistake with my first post.

I have to reshape data from this matrix:

id    x1         x2          x3        x4    day1 day2 day3 day4 day5 day6 day7 day8  day9
1    0.129    0.797    0.231    0.615    4      4     1     1      1      1      3      3      3    
2    0.420    0.376    0.501    0.282    4      4     4     4      5      4      2      5      5    
3    0.377    0.486    0.897    0.699    4      4     4     4      4      4      4      4      4    
4    0.488    0.135    0.975    0.762    4      4     4     4      4      4      4      4      4    
5    0.694    0.568    0.525    0.101    4      1     1     1      1      5      1      5      5    

and my task is to reshape data such that each record contains only one participant (id) on one day

could somebody help me out with this?
does this mean every person have 9 records himself? for all 9 days?

thank you very much


--> Für Fotos hier abdrücken <-

        [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 01 Jun 2009 - 11:42:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 01 Jun 2009 - 13:34:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive