Re: [R] Reorder a data frame according a column randomly reordered.

2011-04-18 Thread Uwe Ligges
On 18.04.2011 17:04, Mohammad Tanvir Ahamed wrote: Hello all , I have a data frame like this X1X2X3 11815 22916 331017 441118 551219 661320 771421 now i want to randomly reorder the variable X2 but the row element should be same as for example X1X2X3 12916 251219 331017 471421 561320 61815

[R] Reorder a data frame according a column randomly reordered.

2011-04-18 Thread Mohammad Tanvir Ahamed
Hello all ,  I have a data frame like this  X1X2X3 11815 22916 331017 441118 551219 661320 771421 now i want to randomly reorder the variable X2  but the row element should be same  as for example  X1X2X3 12916 251219 331017 471421 561320 61815 741118 how can i do that ?? Hint :  this could b