I have this table x and y like this
x | y |
---|---|
0.6 | 0.2 |
0.8 | 0.2 |
0.2 | 0.2 |
0.4 | 0.2 |
0.6 | 0.4 |
0.8 | 0.4 |
0.2 | 0.4 |
0.4 | 0.4 |
0.6 | 0.8 |
0.8 | 0.8 |
0.2 | 0.8 |
0.4 | 0.8 |
0.6 | 0.6 |
0.8 | 0.6 |
0.2 | 0.6 |
0.4 | 0.6 |
- The question is how to order the table using r to be like below?
x | y |
---|---|
0.2 | 0.2 |
0.2 | 0.4 |
0.4 | 0.2 |
0.4 | 0.4 |
0.4 | 0.6 |
0.6 | 0.4 |
0.6 | 0.6 |
0.6 | 0.8 |
0.8 | 0.6 |
0.8 | 0.8 |
if somebody knows please,
- I tried to use the command order but it just order in two ways increasing and decreasing.