Verify yourself to prove that you are not a ROBOT! After verification the page will apear. Thanks for understanding.
I have a dataframe like this,
and want to order it by the argument "ofProduct" and "ofDownMb". I used three codes
AT_s <- AT[ order(AT[,"ofProduct"], AT[,"ofDownMb"]), ]
AT_s <- AT[order(AT$ofProduct, AT$ofDownMb),]
AT_s <- AT[ order(AT[,13], AT[,10]), ]
but neither of them worked perfectly, all giving the results showed in the above dataframe. How do i have to put the code to sort the dataframe according to both arguments?
AND: how can i assing an order to the existing column "ofProduct" in my dataframe with three events to get this order: