Hi,


i have to reshape a dataset. my data have the following format:



ID; x1; x2; x3; x4; v1; ... v20

1; 0.1; 0.3; 0.4; 0.2; 2; ... 3

2; 0.3; 0.7; 0.1; 0.2; 1; ... 4
...
999; 0.9; 0.6; 0.3; 0.1; 4; ... 2
1000; 0.2; 0.6; 0.7; 0.8; 1; ... 5



ID is the number of persons (here 1000 persons)

x are descriptive variables

and v1-v20 are values of satisfaction on holidays for 20 days



and now i should reshape the data such that each record contains only one 
participiant on one day



could somebody help me? i don't know how to do this?!



thank you

_________________________________________________________________
[[elided Hotmail spam]]
[[elided Hotmail spam]]
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to