Hi, I am writing my B.SC thesis and I have to do something in R, my data are

i    index    id    x
1    1    1    0.2
2    2    1    0.4
3    3    1    0.3
4    1    2    0.5
5    2    2    0.3
6    3    2    0.1
7    1    3    0.2
8    2    3    0.1
9    3    3    0.4

and for the analysis they have to be as

i    index    id    x
1    1    1    0.2
4    1    2    0.5
7    1    3    0.2
2    2    1    0.4
5    2    2    0.3
8    2    3    0.1
3    3    1    0.3
6    3    2    0.1
9    3    3    0.4

Thank you for your help!
Sandra



__________________________________________________



        [[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