Sort/Order Data Frame

Hi,
I have a data frame named "Final" with 11 Variables. One of the variable is "Person" (501:1)
I would like to sort the data frame based on Person, but I want to sort/order from 500 to 1 and then 501.

Can someone help?

Current structure:
Person
501
500
499

1

Expected structure:
Person
500
499
498

1
501

Does the following do what you want?

rbind(Final[-1, ], Final[1, ])

Perfect! This helped me!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.